<div dir="ltr"><div>I am using the following CMake command to (hopefully) build a cross compiler.</div><div><br></div><div>cmake -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM -DLLVM_DEFAULT_TARGET_TRIPLE=armv7a-none-eabi -DCMAKE_CROSSCOMPILING=True ..\llvm</div><div><br></div><div>In the CMake output I see </div><div><br></div><div>-- Target triple: i686-pc-win32<br>-- Native target architecture is ARM</div><div><br></div><div>Which confused me.  I spent two days (5 minutes here and there) trying to get the triple right before I gave up.  I compiled the VS2013 solution that was generated and then ran clang --version and got the following output</div><div><br></div><div>PS D:\llvm\build> clang --version<br>clang version 3.7.0 (trunk 226193)<br>Target: armv7a-none--eabi<br>Thread model: posix</div><div><br></div><div>It seems that the CMake script outputs the wrong triple, but clang outputs the correct triple (with an extra '-').  Am I missing something or is this a bug in the build script?<br></div></div>