about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-07-11 13:32:03 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-07-11 13:32:03 +0000
commit87958ad68314daa784e93db4462afc0c079bd3a8 (patch)
tree9c97ac2cc0930fdb4838f261b1f8c056ddf86d6b /src/bootstrap
parent3fe3edbcdeec70580471ec20b444e2c71a67c58a (diff)
downloadrust-87958ad68314daa784e93db4462afc0c079bd3a8.tar.gz
rust-87958ad68314daa784e93db4462afc0c079bd3a8.zip
Avoid building C++ for rustc_llvm with --compile-time-deps
This saves about 30s.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs
index d9a4da8f3cc..bf7369525a4 100644
--- a/src/bootstrap/src/lib.rs
+++ b/src/bootstrap/src/lib.rs
@@ -775,6 +775,9 @@ impl Build {
         if self.config.rust_randomize_layout && check("rustc_randomized_layouts") {
             features.push("rustc_randomized_layouts");
         }
+        if self.config.compile_time_deps && kind == Kind::Check {
+            features.push("check_only");
+        }
 
         // If debug logging is on, then we want the default for tracing:
         // https://github.com/tokio-rs/tracing/blob/3dd5c03d907afdf2c39444a29931833335171554/tracing/src/level_filters.rs#L26