我正在尝试编译LLVM和Clang的编辑版本
要编译LLVM,请使用以下命令:
cmake -DLLVM_DEFAULT_TARGET_TRIPLE=powerpc-unknown-unknown-unknown -DPYTHON_EXECUTABLE="C:\Python27" -DLLVM_TARGETS_TO_BUILD="PowerPC" -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/NewerSMBW-LLVM" "E:\llvm"
我尝试了Windows的CMD和Visual Studio Developper CMD,但都无法正常工作
但是当我尝试编译它时,我总是会收到此错误:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:3 (project):
The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "E:/llvm/CMakeFiles/CMakeOutput.log".
See also "E:/llvm/CMakeFiles/CMakeError.log".
我已经尝试在Ubuntu上编译它,并且运行良好,它开始了非常长时间的编译并且运行良好,但是我需要Windows(例如.exe文件)来使用它,因此请有人帮助我修复该问题。很酷的问题
其他信息:我使用的是SVN,它使用的是LLVM和clang的rev.184655,并且已经使用Internet上的.diff补丁对其进行了编辑。