summary refs log tree commit diff
path: root/config.example.toml
diff options
context:
space:
mode:
authorShriram Balaji <hello@shrirambalaji.com>2024-09-12 00:56:52 +0530
committerShriram Balaji <hello@shrirambalaji.com>2024-10-06 09:59:10 +0530
commit8b968764f15ea84b389b2af98297b9d30fb9952e (patch)
tree332d4dfd931f31d8b3b908333ef3a07772840c55 /config.example.toml
parent85e2f55d8291e643b5b4c98ee09db301379d63a6 (diff)
downloadrust-8b968764f15ea84b389b2af98297b9d30fb9952e.tar.gz
rust-8b968764f15ea84b389b2af98297b9d30fb9952e.zip
bootstrap: add `std_features` config
bootstrap: add std_features  to config.example

fix: use BTreeSet for std-features; add unit tests

* fix formatting of string in front of std_features
* rename `std_features` to `std-features` in config.toml

fix: remove space before std-features in config.toml

fix: remove explicit .into_iter conversion

bootstrap: add details for rust.std-features in config.example.toml

Co-authored-by: Onur Özkan <onurozkan.dev@outlook.com>

fix: remove `Option<T>` from `rust_std_features`

fix: move default rust_std_features to config

fix: make std_features CI rustc incompatible
Diffstat (limited to 'config.example.toml')
-rw-r--r--config.example.toml10
1 files changed, 10 insertions, 0 deletions
diff --git a/config.example.toml b/config.example.toml
index 47ebb20d8fa..4b591b949b3 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -759,6 +759,16 @@
 # Build compiler with the optimization enabled and -Zvalidate-mir, currently only for `std`
 #validate-mir-opts = 3
 
+# Configure `std` features used during bootstrap.
+# Default features will be expanded in the following cases:
+#  - If `rust.llvm-libunwind` or `target.llvm-libunwind` is enabled:
+#    - "llvm-libunwind" will be added for in-tree LLVM builds.
+#    - "system-llvm-libunwind" will be added for system LLVM builds.
+#  - If `rust.backtrace` is enabled, "backtrace" will be added.
+#  - If `rust.profiler` or `target.profiler` is enabled, "profiler" will be added.
+#  - If building for a zkvm target, "compiler-builtins-mem" will be added.
+#std-features = ["panic_unwind"]
+
 # =============================================================================
 # Options for specific targets
 #