Skip to content

Commit c263664

Browse files
authored
Add warnings for prebuilt llvm-config to build.rs (#112)
1 parent 4807d50 commit c263664

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/rustc_codegen_nvvm/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ fn find_llvm_config(target: &str) -> PathBuf {
7575
if version.starts_with(&REQUIRED_MAJOR_LLVM_VERSION.to_string()) {
7676
return PathBuf::from(path_to_try);
7777
}
78+
println!("cargo:warning=Prebuilt llvm-config version does not start with {}", REQUIRED_MAJOR_LLVM_VERSION);
79+
} else {
80+
println!("cargo:warning=Failed to run prebuilt llvm-config");
7881
}
7982
}
8083

0 commit comments

Comments
 (0)