diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-07-11 13:32:03 +0000 | 
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-07-11 13:32:03 +0000 | 
| commit | 87958ad68314daa784e93db4462afc0c079bd3a8 (patch) | |
| tree | 9c97ac2cc0930fdb4838f261b1f8c056ddf86d6b /compiler/rustc_llvm/build.rs | |
| parent | 3fe3edbcdeec70580471ec20b444e2c71a67c58a (diff) | |
| download | rust-87958ad68314daa784e93db4462afc0c079bd3a8.tar.gz rust-87958ad68314daa784e93db4462afc0c079bd3a8.zip | |
Avoid building C++ for rustc_llvm with --compile-time-deps
This saves about 30s.
Diffstat (limited to 'compiler/rustc_llvm/build.rs')
| -rw-r--r-- | compiler/rustc_llvm/build.rs | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index 9a6549379d3..069b684ad09 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -106,6 +106,10 @@ fn output(cmd: &mut Command) -> String { } fn main() { + if cfg!(feature = "check_only") { + return; + } + for component in REQUIRED_COMPONENTS.iter().chain(OPTIONAL_COMPONENTS.iter()) { println!("cargo:rustc-check-cfg=cfg(llvm_component,values(\"{component}\"))"); } | 
