-
Notifications
You must be signed in to change notification settings - Fork 13.4k
bootstrap.example.toml: use less contextual format #142636
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
base: master
Are you sure you want to change the base?
bootstrap.example.toml: use less contextual format #142636
Conversation
prefixing each key with its section means you don't need to scroll up 4 pages to see which section a particular key is from. target specific options were kept in old format since the exact section name depends on the target, so those options must now be moved to the bottom of the file.
This PR modifies If appropriate, please update |
This comment has been minimized.
This comment has been minimized.
Note that the Python part of bootstrap parses this file, so it will probably require some changes in it 🥶 |
#llvm.clang = false | ||
|
||
# Whether to enable llvm compilation warnings. | ||
#enable-warnings = false | ||
#llvm.enable-warnings = false | ||
|
||
# Custom CMake defines to set when building LLVM. | ||
#build-config = {} | ||
#llvm.build-config = {} | ||
|
||
# ============================================================================= | ||
# Tweaking how GCC is compiled | ||
# ============================================================================= | ||
[gcc] | ||
# Download GCC from CI instead of building it locally. | ||
# Note that this will attempt to download GCC even if there are local | ||
# modifications to the `src/gcc` submodule. | ||
# Currently, this is only supported for the `x86_64-unknown-linux-gnu` target. | ||
#download-ci-gcc = false | ||
#gcc.download-ci-gcc = false |
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.
I forget. If we have a sequence like this:
llvm.clang = false
gcc.download-ci-gcc = false
llvm.enable-warnings = false
does that still parse correctly as toml?
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.
According to https://www.toml-lint.com/ and https://pseitz.github.io/toml-to-json-online-converter/ it does.
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.
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.
cool, that was the one thing I was wondering about.
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.
There was a point during the TOML spec discussions leading up to 1.0 where some of us argued we should not allow this.
This comment has been minimized.
This comment has been minimized.
fb25417
to
a0158b8
Compare
This comment has been minimized.
This comment has been minimized.
a0158b8
to
59ef0b2
Compare
This comment has been minimized.
This comment has been minimized.
59ef0b2
to
851fd58
Compare
This comment has been minimized.
This comment has been minimized.
851fd58
to
1d22c66
Compare
prefixing each key with its section means you don't need to scroll up 4 pages to see which section
a particular key is from.
target specific options were kept in old format since the exact section name depends on the target, so those options must now be moved to the bottom of the file.
inspired by zulip discussion
r? @workingjubilee