mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 05:26:23 +03:00
runtest: correctly guard against LLVM version 13
This commit is contained in:
@@ -2293,7 +2293,11 @@ fn verify_with_filecheck(&self, output: &Path) -> ProcRes {
|
||||
// For now, though…
|
||||
if let Some(rev) = self.revision {
|
||||
let prefixes = format!("CHECK,{}", rev);
|
||||
filecheck.args(&["--allow-unused-prefixes", "--check-prefixes", &prefixes]);
|
||||
if self.config.llvm_version.unwrap_or(0) >= 130000 {
|
||||
filecheck.args(&["--allow-unused-prefixes", "--check-prefixes", &prefixes]);
|
||||
} else {
|
||||
filecheck.args(&["--check-prefixes", &prefixes]);
|
||||
}
|
||||
}
|
||||
self.compose_and_run(filecheck, "", None, None)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user