Skip to content

Commit 37ce36f

Browse files
committed
skip FileCheck check when running in dry-run mode
Signed-off-by: onur-ozkan <[email protected]>
1 parent 17aab60 commit 37ce36f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/bootstrap/src/core/sanity.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -294,19 +294,19 @@ than building it.
294294
}
295295
}
296296

297-
for host in &build.hosts {
298-
if !build.config.dry_run() {
297+
if !build.config.dry_run() {
298+
for host in &build.hosts {
299299
cmd_finder.must_have(build.cxx(*host).unwrap());
300-
}
301300

302-
if build.config.llvm_enabled(*host) {
303-
// Externally configured LLVM requires FileCheck to exist
304-
let filecheck = build.llvm_filecheck(build.build);
305-
if !filecheck.starts_with(&build.out)
306-
&& !filecheck.exists()
307-
&& build.config.codegen_tests
308-
{
309-
panic!("FileCheck executable {filecheck:?} does not exist");
301+
if build.config.llvm_enabled(*host) {
302+
// Externally configured LLVM requires FileCheck to exist
303+
let filecheck = build.llvm_filecheck(build.build);
304+
if !filecheck.starts_with(&build.out)
305+
&& !filecheck.exists()
306+
&& build.config.codegen_tests
307+
{
308+
panic!("FileCheck executable {filecheck:?} does not exist");
309+
}
310310
}
311311
}
312312
}

0 commit comments

Comments
 (0)