我正在尝试使用MinGW在Windows 7上构建LLVM。我使用此命令运行CMake
C:\ Users \ Elidio \ Desktop \ llvm-7.0.0.src \ build> cmake -G“ MinGW Makefile“ -D” CMAKE _MAKE_PROGRAM:FILEPATH = C:/MinGW/bin/mingw32-make.exe“ -DCMAKE_BUILD_TYPE =发布..
花了一些时间来配置makefile,但是当我开始构建时,最终它抛出了这个错误:
[1%]建立CXX对象 lib / Support / CMakeFiles / LLVMSupport.dir / CachePruning.c pp.obj在文件中 来自 C:\ Users \ Elidio \ Desktop \ llvm-7.0.0.src \ lib \ Support \ CachePr uning.cpp:17:0: C:/Users/Elidio/Desktop/llvm-7.0.0.src/include/llvm/Support/Errc.h:66:23: 错误:“ not_supported”不是“ std :: errc”的成员
not_supported = int(std :: errc :: not_supported), ^ ~~ lib \ Support \ CMakeFiles \ LLVMSupport.dir \ build.make:258:配方 目标'lib / Su pport / CMakeFiles / LLVMSupport.dir / CachePruning.cpp.obj' 失败的mingw32-make.exe [2]: * [lib / Support / CMakeFiles / LLVMSupport.dir / CachePruning.cp p.obj]错误1 CMakeFiles \ Makefile2:598:目标配方 'lib / Support / CMakeFiles / LLVMSupport。目录/全部'失败 mingw32-make.exe [1]:* [lib / Support / CMakeFiles / LLVMSupport.dir / all] 错误2 Makefile:150:目标“全部”的配方失败mingw32-make.exe: *** [全部]错误2
我该怎么做才能用MinGW编译LLVM?