diff options
| author | onur-ozkan <work@onurozkan.dev> | 2024-09-20 18:25:01 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2024-09-20 19:33:14 +0300 |
| commit | 37ce36f130267a4d2dedc3ec143af4e5520a1fbc (patch) | |
| tree | 507ee1ab7c1aa914fa5af5287ab044dd654ad64f /src | |
| parent | 17aab60d6ffedf46564cf3ac40e91b55282201e7 (diff) | |
| download | rust-37ce36f130267a4d2dedc3ec143af4e5520a1fbc.tar.gz rust-37ce36f130267a4d2dedc3ec143af4e5520a1fbc.zip | |
skip `FileCheck` check when running in dry-run mode
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/sanity.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/bootstrap/src/core/sanity.rs b/src/bootstrap/src/core/sanity.rs index e0790c5bf70..2e3b913ba95 100644 --- a/src/bootstrap/src/core/sanity.rs +++ b/src/bootstrap/src/core/sanity.rs @@ -294,19 +294,19 @@ than building it. } } - for host in &build.hosts { - if !build.config.dry_run() { + if !build.config.dry_run() { + for host in &build.hosts { cmd_finder.must_have(build.cxx(*host).unwrap()); - } - if build.config.llvm_enabled(*host) { - // Externally configured LLVM requires FileCheck to exist - let filecheck = build.llvm_filecheck(build.build); - if !filecheck.starts_with(&build.out) - && !filecheck.exists() - && build.config.codegen_tests - { - panic!("FileCheck executable {filecheck:?} does not exist"); + if build.config.llvm_enabled(*host) { + // Externally configured LLVM requires FileCheck to exist + let filecheck = build.llvm_filecheck(build.build); + if !filecheck.starts_with(&build.out) + && !filecheck.exists() + && build.config.codegen_tests + { + panic!("FileCheck executable {filecheck:?} does not exist"); + } } } } |
