我想为 Visual Studio Code 设置一个调试器,因此我尝试构建 LLVM 环境,以便在我的计算机上安装 LLDB。但构建失败并显示以下输出:
CMake Warning at cmake/modules/GetHostTriple.cmake:28 (message):
unable to determine host target triple
Call Stack (most recent call first):
cmake/config-ix.cmake:401 (get_host_triple)
CMakeLists.txt:670 (include)
CMake Error at cmake/config-ix.cmake:409 (string):
string sub-command REGEX, mode MATCH needs at least 5 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:670 (include)
CMake Error at cmake/config-ix.cmake:453 (message):
Unknown architecture host
Call Stack (most recent call first):
CMakeLists.txt:670 (include)
Run Code Online (Sandbox Code Playgroud)
我使用 clang v11.0.1、CMake v3.18.0-rc4 和 Ninja v1.10.2。