Skip to content

Issue using llvm 13

I am trying to use this with llvm 13. I have compiled llvm 13. I COPY PASTED THE BUILD SCRIPT INTO THE MAIN AND IT WORKS (minus the one cc call). but if I try to compile with this as a dependency I get

   Compiling llvm-sys v130.0.3
error: No suitable version of LLVM was found system-wide or pointed
              to by LLVM_SYS_130_PREFIX.
       
              Consider using `llvmenv` to compile an appropriate copy of LLVM, and
              refer to the llvm-sys documentation for more information.
       
              llvm-sys: https://crates.io/crates/llvm-sys
              llvmenv: https://crates.io/crates/llvmenv
   --> C:\Users\<dir>\.cargo\registry\src\github.com-1ecc6299db9ec823\llvm-sys-130.0.3\src\lib.rs:487:1
    |
487 | / std::compile_error!(concat!(
488 | |     "No suitable version of LLVM was found system-wide or pointed
489 | |        to by LLVM_SYS_",
490 | |     env!("CARGO_PKG_VERSION_MAJOR"),
...   |
497 | |        llvmenv: https://crates.io/crates/llvmenv"
498 | | ));
    | |__^

not sure what is going wrong.