Skip to content

Commit

Permalink
fix(jamesmth#14): build script does not rebuild when the LLVM prefix …
Browse files Browse the repository at this point in the history
…has been corrected from an invalid path to a valid one
  • Loading branch information
WolverinDEV committed Dec 2, 2024
1 parent efdb66c commit 7061cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm-plugin/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ fn main() {
let (major, minor) = *llvm_sys::LLVM_VERSION_FROM_FEATURES;
println!("cargo:rustc-env=LLVM_VERSION_MAJOR={}{}", major, minor);

println!("cargo:rerun-if-env-changed={}", &*llvm_sys::ENV_LLVM_PREFIX);
if llvm_sys::LLVM_CONFIG_PATH.is_none() {
println!("cargo:rustc-cfg=LLVM_NOT_FOUND");
return;
Expand Down Expand Up @@ -54,7 +55,6 @@ fn main() {
}

println!("cargo:rerun-if-changed=cpp");
println!("cargo:rerun-if-env-changed={}", &*llvm_sys::ENV_LLVM_PREFIX);
}

// Most code from this module was taken from the `llvm-sys` crate.
Expand Down

0 comments on commit 7061cd3

Please sign in to comment.