Error when using CMake with LLVM

后端 未结 5 554
慢半拍i
慢半拍i 2020-12-19 07:07

So I\'m trying to build a toy compiler using LLVM and I\'d like to use CMake as my build system. I tried using the sample CMakeLists.txt from LLVM\'s website, but I encounte

5条回答
  •  一向
    一向 (楼主)
    2020-12-19 07:27

    The easiest option is to install a version of LLVM that doesn't have that problem: the error disappeared for me after doing:

    apt-get remove llvm
    apt-get autoremove
    apt-get install llvm-3.9
    

    (Tested on Ubuntu 16.04.)

提交回复
热议问题