<div dir="ltr"><div>Hi,<br></div><div><br></div><div>I would like to compile a C program with Clang for Windows Phone ARM target.</div><div><br></div><div>The host machine is amd64 running Windows 8.</div><div>I'm using the out of the box Clang 3.1 release binary for Windows and MinGW.</div>
<div><br></div><div>I run: </div><div>> clang -v -target arm -I. -c c:\TEST\a.c -o c:\TEST\a.o</div><div><br></div><div>I get the following:</div><div><br></div><div>clang version 3.1 (branches/release_31)</div><div>Target: arm</div>
<div>Thread model: posix</div><div>clang: warning: unknown platform, assuming -mfloat-abi=soft</div><div>...</div><div>error: unable to create target: 'No available targets are compatible with this triple, see -version for the available targets.'</div>
<div><br></div><div><br></div><div>When I run llc --verions</div><div><br></div><div>LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):</div><div>  LLVM version 3.1svn</div><div>  DEBUG build with assertions.</div><div>
  Built Jan 27 2013 (15:12:16).</div><div>  Default target: i686-pc-win32</div><div>  Host CPU: i686</div><div><br></div><div>  Registered Targets:</div><div>    c      - C backend</div><div>    x86    - 32-bit X86: Pentium-Pro and above</div>
<div>    x86-64 - 64-bit X86: EM64T and AMD64</div><div><br></div><div><br></div><div>So no ARM LLVM backend.</div><div><br></div><div>Is there any particular reason for not supporting ARM on Windows host?</div><div><br></div>
<div>If no, do I have to recompile both LLVM and Clang or only Clang?</div><div><br></div><div>Thanks,</div><div>David</div><div><br></div></div>