I am open to either a Visual Studio answer or a MinGW answer. I just finished building LLVM 3.2 using CMake and Visual Studio 2010. Everything went smoothly, but I have no llvm-config
. Do I need it? Every example I see on the intertubes makes use of that tool. If I don't need it, how do I configure my project to make use of LLVM?
To be clear, I am not trying to use LLVM tools/compilers (like clang
and whatnot). I am trying to write C++ code that uses the LLVM libraries to produce LLVM IR and even compile that stuff. I setup my include and lib folders. I ran llvm-config
in Linux and saw a long list of macros and libraries.
I have a wonderful folder full of goodies. It just has no llvm-config
in there: C:\Program Files (x86)\LLVM\
The llvm-config executable is located in bin\Release or bin\Debug , reflecting the build version.
When you get to the PATH settings, make sure to add LLVM to the system PATH: Use the default install location: C:\Program Files\LLVM . Once the installation completes hit 'Finish'.
llvm-config makes it easier to build applications that use LLVM. It can print the compiler flags, linker flags and object libraries needed to link against LLVM.
llvm-config
does not exist in windows prebuilt binaries. You need to compile from the source code to get it.
9.0.1
is the latest as I'm writing this) Cd
into the root of the llvm source-code cmake .
this will generate Visual Studio 2019 sln. LLVM.sln
), change the build type to Rlease, build the whole project Rlease\bin
, and there you have your llvm-config.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With