LLVM out of source pass build: Loadable modules not supported (on Linux)

后端 未结 3 487
长情又很酷
长情又很酷 2021-01-02 18:47

I compiled and installed LLVM from trunk on debian wheezy some weeks ago (configure & make) and now tried to out of source compile the llvm-mutate pass. AFAICC, llvm-mut

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-02 19:12

    Adding to alexei's reply.

    You can lso add list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}") in the CMakeLists.txt file prior to the include(AddLLVM) line and then having in your PATH the LLVM binary directory for llvm-config, invoke cmake as

    CXX=clang++ cmake -DLLVM_DIR=$(llvm-config --prefix)/share/llvm/cmake ..
    

提交回复
热议问题