<div dir="ltr"><div>I have a custom tool that is built using clang 3.8.0.  When I #include <atomic> the tool fails and gives this error message:</div><div><br></div><div>1>  In file included from C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\atomic:19:<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(98,2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(117,2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(140,2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(163,2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xatomic.h(186,2): error : MS-style inline assembly is not available: Unable to find target for this triple (no targets are registered)<br>1>          __asm<br>1>          ^<br>1>  5 errors generated.</div><div><br></div><div><br></div><div><br></div><div><br></div><div>When I run clang-cl against the same file it compiles without a complaint.  What would I need to do to get this to work?</div></div>