<div dir="ltr"><div>Has anyone built Compiler-RT on Windows?  I am attempting to compile it for ARM, but I get errors from CMake.  It appears to be trying to pass VC++ flags to Clang.  I am using a version of Clang built from trunk.</div><div><br></div><div><br></div><div><br></div><div>PS D:\llvm\arm_test\compiler-rt-build> cmake -G Ninja -DCMAKE_C_COMPILER=clang.exe -DCMAKE_CXX_COMPILER=clang++.exe -DCM<br>AKE_RC_COMPILER=rc.exe -DCMAKE_CXX_FLAGS="" -DCMAKE_C_FLAGS="" ..\compiler-rt<br>-- The C compiler identification is Clang 3.7.0<br>clang.exe: error: no such file or directory: '/nologo'<br>clang.exe: error: no such file or directory: '/showIncludes'<br>-- The CXX compiler identification is Clang 3.7.0<br>clang.exe: error: no such file or directory: '/nologo'<br>clang.exe: error: no such file or directory: '/showIncludes'<br>-- Check for working C compiler using: Ninja<br>-- Check for working C compiler using: Ninja -- broken<br>CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/CMakeTestCCompiler.cmake:61 (message):<br>  The C compiler "d:/llvm/build/Release/bin/clang.exe" is not able to compile<br>  a simple test program.</div><div>  It fails with the following output:</div><div>   Change Dir: D:/llvm/arm_test/compiler-rt-build/CMakeFiles/CMakeTmp</div><div><br></div><div>  Run Build Command:"d:/llvm/ninja/ninja.exe" "cmTryCompileExec2171879632"</div><div>  [1/2] Building C object<br>  CMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj</div><div>  FAILED: d:\llvm\build\Release\bin\clang.exe /nologo /D_DEBUG /MDd /Zi /Ob0<br>  /Od /RTC1 /showIncludes<br>  /FoCMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj<br>  /FdCMakeFiles\cmTryCompileExec2171879632.dir\ -c testCCompiler.c</div><div>  clang.exe: error: no such file or directory: '/nologo'</div><div>  clang.exe: error: no such file or directory: '/D_DEBUG'</div><div>  clang.exe: error: no such file or directory: '/MDd'</div><div>  clang.exe: error: no such file or directory: '/Zi'</div><div>  clang.exe: error: no such file or directory: '/Ob0'</div><div>  clang.exe: error: no such file or directory: '/Od'</div><div>  clang.exe: error: no such file or directory: '/RTC1'</div><div>  clang.exe: error: no such file or directory: '/showIncludes'</div><div>  clang.exe: error: no such file or directory:<br>  '/FoCMakeFiles\cmTryCompileExec2171879632.dir\testCCompiler.c.obj'</div><div>  clang.exe: error: no such file or directory:<br>  '/FdCMakeFiles\cmTryCompileExec2171879632.dir\'</div><div>  ninja: build stopped: subcommand failed.</div><div><br></div><div><br></div><div>  CMake will not be able to correctly generate this project.<br>Call Stack (most recent call first):<br>  CMakeLists.txt:12 (project)</div><div><br>-- Configuring incomplete, errors occurred!<br>See also "D:/llvm/arm_test/compiler-rt-build/CMakeFiles/CMakeOutput.log".<br>See also "D:/llvm/arm_test/compiler-rt-build/CMakeFiles/CMakeError.log".</div></div>