-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Override config.toml options from command line #111566
Conversation
r? @ozkanonur (rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
We should do the overriding in |
1a36a1d
to
4c84b7a
Compare
This comment has been minimized.
This comment has been minimized.
4c84b7a
to
7f0d98d
Compare
Looks roughly good, can we have test for this? |
7f0d98d
to
9b29cd4
Compare
9b29cd4
to
4a63d58
Compare
This comment has been minimized.
This comment has been minimized.
4a63d58
to
49579e4
Compare
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.
This seems broadly good 👍 good call on slotting this into the existing Merge trait.
I would like to use this new mechanism in ./configure
; I think it will both be a lot more maintainable (easier to test, the existing hacky regex in bootstrap.py
only has to handle options it's actually using instead of all options) and a good way to verify that your new code is doing the right thing.
I think this shouldn't be too hard to add if you change rust/src/bootstrap/configure.py Lines 557 to 559 in 787f3fe
to something like with bootstrap.output('Makefile') as f:
template = os.path.join(rust_dir, 'src', 'bootstrap', 'mk', 'Makefile.in')
contents = "BOOTSTRAP_ARGS := " + " ".join(sys.argv[1:]) + "\n"
contents += open(template).read() and then delete all the handling of |
@rustbot author |
49579e4
to
0ca21e2
Compare
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.
last review notes from my side, thank you for the previous fixes :)
0ca21e2
to
08a176b
Compare
This LGTM. Feel free to r=me if your notes were resolved @jyn514 |
I haven't yet implemented #111566 (comment), planning to work on that today |
08a176b
to
9e088b2
Compare
Pushing to test if this is working with CI so far, but please let me know if you have any thoughts on the changes. I've not cleaned it up yet, so there's some unused functions EDIT: newer, simpler approach |
This comment has been minimized.
This comment has been minimized.
9e088b2
to
fe6b3d1
Compare
This comment has been minimized.
This comment has been minimized.
Ah, @jyn514 scripts like |
ah hmm, I see - running That's unfortunate. The only way I can think of to get configure to use the new I think for now let's leave ./configure as-is and land the improvement to bootstrap itself and I'll think more about whether it makes sense to allow |
What about setting |
I don't see how that will work? How will they get set in the environment of the code that runs x.py? |
Ah yes, my mistake. I'll revert the configure changes |
fe6b3d1
to
7a7cbe0
Compare
@bors r=ozkanonur |
☀️ Test successful - checks-actions |
Finished benchmarking commit (70db836): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 647.352s -> 647.458s (0.02%) |
https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/Running.20tests.20on.20precompiled.20rustc/near/357763280
cc @jyn514