-
-
Notifications
You must be signed in to change notification settings - Fork 341
[NINJA] Added option to allow scons to determine if it should skip ninja regeneration. #4169
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
Conversation
| import SCons | ||
| import random | ||
| SetOption('experimental','ninja') | ||
| SetOption('skip_ninja_regen', True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I comment this line out, the test still passes? Is that expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah actually this flag is not relevant to the current test. This PR makes ninja files deterministic, but the flag is for controlling skipping the regeneration and restarting of the daemon. The flag is to protect users who may be using Glob or SCons generated files in command lines. Its assumed if the user enables the flag, they know what they are doing.
I will update this test to also make sure the mtime of the ninja file did not change, which would indicate it was never overwritten.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
o.k. so run this test with master branch code and it should fail then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I tested that in the latest
|
@bdbaddog fixed the notes, and updated the test |
…ixture sconstruct
Contributor Checklist:
CHANGES.txt(and read theREADME.rst)