about summary refs log tree commit diff
path: root/bootstrap.example.toml
diff options
context:
space:
mode:
authorPaul Murphy <murp@redhat.com>2025-08-20 11:19:49 -0500
committerPaul Murphy <murp@redhat.com>2025-08-25 16:08:36 -0500
commit148a07cbd0842ed64bffec0aad8b4c20ed1186a3 (patch)
tree41db027de5eb9cc3852352cfc48acf393f877ba7 /bootstrap.example.toml
parent64cbe52849fdfb9ff097dd311be826b00d27ba45 (diff)
downloadrust-148a07cbd0842ed64bffec0aad8b4c20ed1186a3.tar.gz
rust-148a07cbd0842ed64bffec0aad8b4c20ed1186a3.zip
Refactor *.optimized-compiler-builtins bootstrap options
Create a dedicated enum to abstract the different ways compiler-builtins
can be configured.

This also relaxes build.optimized-compiler-builtins to accept the path
of a library to match the behavior of <target>.optimized-compiler-builtins
override.
Diffstat (limited to 'bootstrap.example.toml')
-rw-r--r--bootstrap.example.toml7
1 files changed, 5 insertions, 2 deletions
diff --git a/bootstrap.example.toml b/bootstrap.example.toml
index ebab2e14828..16fd9241a17 100644
--- a/bootstrap.example.toml
+++ b/bootstrap.example.toml
@@ -407,8 +407,11 @@
 #build.profiler = false
 
 # Use the optimized LLVM C intrinsics for `compiler_builtins`, rather than Rust intrinsics.
-# Requires the LLVM submodule to be managed by bootstrap (i.e. not external) so that `compiler-rt`
-# sources are available.
+# Choosing true requires the LLVM submodule to be managed by bootstrap (i.e. not external)
+# so that `compiler-rt` sources are available.
+#
+# Setting this to a path removes the requirement for a C toolchain, but requires setting the
+# path to an existing library containing the builtins library from LLVM's compiler-rt.
 #
 # Setting this to `false` generates slower code, but removes the requirement for a C toolchain in
 # order to run `x check`.