-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variable controlling max number of jobs #922
Comments
A different name for ninja requires all other aliases, cut-n-paste command lines, and manual entry to conform. I'd rather set an environment variable once and not think about it again. A same name alias mostly works, (Ok, my actual work around has some platform detection
) |
Let's close this as dupe of #816, which we think we don't want to do. |
When ninja invokes ninja (for instance when building a sub-project) it is useful to have a way to control the flags used by the sub-ninja process. If I pass '-d explain' or '-v' when starting ninja from the command line on the top project, I expect these flags to be forwarded to the sub-ninja process. Note that this patch has limited parsing capabilities of the NINJA_FLAGS environment variables but that should be enough for our use case. Fixes ninja-build#797, ninja-build#922 and ninja-build#816.
I'd like to propose an environment variable NINJA_JOBS as an alternative to the command line argument -j.
This would allow systems where the default configuration isn't appropriate to have a single setup step to correct for it but simplify all future command line executions. E.g. environments where distributed build tools such as distcc or goma are used.
Happy to code patch if there's agreement.
The text was updated successfully, but these errors were encountered: