Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,12 @@ pub fn std_cargo(builder: &Builder<'_>, target: TargetSelection, cargo: &mut Car
),
);
let compiler_builtins_root = builder.src.join("src/llvm-project/compiler-rt");
assert!(compiler_builtins_root.exists());
if !builder.config.dry_run() {
// This assertion would otherwise trigger during tests if `llvm-project` is not
// checked out.
assert!(compiler_builtins_root.exists());
}

// The path to `compiler-rt` is also used by `profiler_builtins` (above),
// so if you're changing something here please also change that as appropriate.
cargo.env("RUST_COMPILER_RT_ROOT", &compiler_builtins_root);
Expand Down
Loading