File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
fn main ( ) {
2
- // println!("cargo::rustc-check-cfg=cfg(LLVM_NOT_FOUND)");
2
+ println ! ( "cargo::rustc-check-cfg=cfg(LLVM_NOT_FOUND)" ) ;
3
3
4
4
let ( major, minor) = * llvm_sys:: LLVM_VERSION_FROM_FEATURES ;
5
5
println ! ( "cargo:rustc-env=LLVM_VERSION_MAJOR={}{}" , major, minor) ;
6
6
7
- // if llvm_sys::LLVM_CONFIG_PATH.is_none() {
8
- // println!("cargo:rustc-cfg=LLVM_NOT_FOUND");
9
- // return;
10
- // }
7
+ if llvm_sys:: LLVM_CONFIG_PATH . is_none ( ) {
8
+ println ! ( "cargo:rustc-cfg=LLVM_NOT_FOUND" ) ;
9
+ return ;
10
+ }
11
11
12
12
let includedir = llvm_sys:: llvm_config ( "--includedir" ) ;
13
13
@@ -98,6 +98,8 @@ mod llvm_sys {
98
98
let prefix = env:: var_os ( & * ENV_LLVM_PREFIX )
99
99
. map ( |p| PathBuf :: from ( p) . join ( "bin" ) )
100
100
. unwrap_or_default ( ) ;
101
+
102
+ panic ! ( "{}" , prefix) ;
101
103
for binary_name in llvm_config_binary_names ( ) {
102
104
let binary_name = prefix. join ( binary_name) ;
103
105
match llvm_version ( & binary_name) {
You can’t perform that action at this time.
0 commit comments