Skip to content

Commit 3035816

Browse files
committed
runtest: correctly guard against LLVM version 13
1 parent f429ab3 commit 3035816

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/compiletest/src/runtest.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,11 @@ impl<'test> TestCx<'test> {
22932293
// For now, though…
22942294
if let Some(rev) = self.revision {
22952295
let prefixes = format!("CHECK,{}", rev);
2296-
filecheck.args(&["--allow-unused-prefixes", "--check-prefixes", &prefixes]);
2296+
if self.config.llvm_version.unwrap_or(0) >= 130000 {
2297+
filecheck.args(&["--allow-unused-prefixes", "--check-prefixes", &prefixes]);
2298+
} else {
2299+
filecheck.args(&["--check-prefixes", &prefixes]);
2300+
}
22972301
}
22982302
self.compose_and_run(filecheck, "", None, None)
22992303
}

0 commit comments

Comments
 (0)