Override --jobs option value with an env var in build.rs #43
This patch enables build.rs to override --jobs option value of
In typical containerization system (e.g. Docker), the number of CPU cores
This change is useful in the above situation. (Of course, not only that!)
I am developing a my own static site generator named Salmon. That app uses this crate to compile Sass files. This wrapper library is great for me
I am trying automation of release the app, however, sometimes a building job is failed like https://circleci.com/gh/mozamimy/salmon/93 memory allocation error.
CircleCI is using Docker for containerization technology to isolate each build environment. The building process by build.rs finds the number of CPU is 36 with current implementaion. However, the actual given CPU cores are two and the memory limitation is 4096MB.
So I want to inject the parameter of
The text was updated successfully, but these errors were encountered:
This patch enables build.rs to override --jobs option value of make command with MAKE_LIBSASS_JOBS environment variable. In typical containerization system (e.g. Docker), the number of CPU cores which is visible from a process jailed into a container can be greater than the container limitation. This change is useful in the above situation. (Of course, not only that!)
I have created a pull request to resolve the problem. However, the PR is not accepted yet. compass-rs/sass-rs#43