[LLVMdev] Cmake and pass

mg mariusz.grad at googlemail.com
Mon Nov 9 12:27:31 PST 2009


On Nov 9, 4:36 pm, Óscar Fuentes <o... at wanadoo.es> wrote:

> cmake -DBUILD_SHARED_LIBS=ON path/to/llvm/source

>
> This builds all LLVM libraries as shared objects, though.
Works great.
Thank You.

CMakeLists.txt looks like this:
set(BUILD_SHARED_LIBS "ON")
add_llvm_library(LLVMfoo pass/main.cc)

It generates Debug/lib/libLLVMfoo.so which then can be loaded with opt
-load.

--
mg.




More information about the llvm-dev mailing list