about summary refs log tree commit diff
path: root/library/sysroot
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-10-17 16:54:22 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-10-17 22:08:36 +1100
commitbae25968dd802596093212766f4fbd34d33ce416 (patch)
treef11005af1c7f42862272bf7f4d201664167ecd2f /library/sysroot
parent7342830c05ec0996e9e4b7df550b1043dca7829c (diff)
downloadrust-bae25968dd802596093212766f4fbd34d33ce416.tar.gz
rust-bae25968dd802596093212766f4fbd34d33ce416.zip
Make `profiler_builtins` an optional dependency of sysroot, not std
This avoids unnecessary rebuilds of std (and the compiler) when
`build.profiler` is toggled off or on.
Diffstat (limited to 'library/sysroot')
-rw-r--r--library/sysroot/Cargo.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/sysroot/Cargo.toml b/library/sysroot/Cargo.toml
index 7165c3e48af..aa6c3dc32e2 100644
--- a/library/sysroot/Cargo.toml
+++ b/library/sysroot/Cargo.toml
@@ -6,6 +6,7 @@ edition = "2021"
 # this is a dummy crate to ensure that all required crates appear in the sysroot
 [dependencies]
 proc_macro = { path = "../proc_macro" }
+profiler_builtins = { path = "../profiler_builtins", optional = true }
 std = { path = "../std" }
 test = { path = "../test" }
 
@@ -23,7 +24,7 @@ system-llvm-libunwind = ["std/system-llvm-libunwind"]
 panic-unwind = ["std/panic_unwind"]
 panic_immediate_abort = ["std/panic_immediate_abort"]
 optimize_for_size = ["std/optimize_for_size"]
-profiler = ["std/profiler"]
+profiler = ["dep:profiler_builtins"]
 std_detect_file_io = ["std/std_detect_file_io"]
 std_detect_dlsym_getauxval = ["std/std_detect_dlsym_getauxval"]
 std_detect_env_override = ["std/std_detect_env_override"]