Skip to content

Commit

Permalink
Add rustc-check-cfg directive in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmth committed Aug 5, 2024
1 parent bf6b4d7 commit 0868a03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm-plugin/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
fn main() {
println!("cargo::rustc-check-cfg=cfg(LLVM_NOT_FOUND)");

let (major, minor) = *llvm_sys::LLVM_VERSION_FROM_FEATURES;
println!("cargo:rustc-env=LLVM_VERSION_MAJOR={}{}", major, minor);

Expand Down

0 comments on commit 0868a03

Please sign in to comment.