skip FileCheck check when running in dry-run mode

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-09-20 18:25:01 +03:00
parent 17aab60d6f
commit 37ce36f130

View File

@ -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");
}
}
}
}