当我尝试使用来自 here 的以下命令编译 llvm 时,
cmake "Unix Make Files"-DCMAKE_BUILD_TYPE=Debug ~/llvm/1/llvm/
我收到以下错误:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBCXXABI_LIBCXX_INCLUDES
used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
used as include directory in directory /home/salman/llvm/1/llvm/projects/libcxxabi/src
这是为什么呢?我用谷歌搜索但找不到可能的解决方案。
最佳答案
我刚刚解决了这个问题。
看here :
Check out libcxx and libcxxabi into llvm/projects
确保在 llvm/projects 中检查 libcxx 和 libcxxabi。
关于clang - LLVM 由于缺少变量而无法编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29203953/