<div dir="ltr">It's documented to some extent <a href="http://clang.llvm.org/docs/CrossCompilation.html#target-triple">http://clang.llvm.org/docs/CrossCompilation.html#target-triple</a> but we could probably do better here.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 14, 2014 at 4:41 AM, Edward Diener <span dir="ltr"><<a href="mailto:eldlistmailingz@tropicsoft.com" target="_blank">eldlistmailingz@tropicsoft.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 7/8/2014 11:13 AM, Nico Weber wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
On Tue, Jul 8, 2014 at 6:54 AM, Edward Diener<br>
<<a href="mailto:eldlistmailingz@tropicsoft.com" target="_blank">eldlistmailingz@tropicsoft.<u></u>com</a><br></div><div class="">
<mailto:<a href="mailto:eldlistmailingz@tropicsoft.com" target="_blank">eldlistmailingz@<u></u>tropicsoft.com</a>>> wrote:<br>
<br>
Since the two versions for clang on Windows, one using VC++ RTL and<br>
emulating VC++ to some small extent and the other using mingw rtl,<br>
are radically different, is there any easy way to distinguish<br>
between them at pre-execution time.<br>
<br>
In Boost Build we currently have a single toolset named 'clang' for<br>
the clang compiler. On Linux it uses a clang-linux.jam file, on the<br>
Mac it uses a clang-darwin.jam file, and I am trying to establish<br>
.jam files for using clang on Windows. Essentially I can use the<br>
clang-linux.jam file with a slight modification if the clang version<br>
uses mingw, but I need to use a clang-win.jam file if the clang<br>
version uses VC++. So somewhere early in the Boost Build processing<br>
I have to determine which 'clang.exe' is being used on Windows in<br>
order to invoke the proper Boost Build jam file for it.<br>
<br>
<br>
It's not really to different clang binaries as far as I know, just the<br>
same binary with a different default triple. So you could pass an<br>
explicit -target parameter to force one compiler behavior over the other<br>
too. (-target i386-pc-win32 for VC mode, -target i386-pc-mingw32 for gcc<br>
mode)<br>
</div></blockquote>
<br>
When using clang --help I see:<br>
<br>
--target=<value> Generate code for the given target<br>
<br>
Is this the target option ( note the -- ) that can be passed to clang to change to either VC mode or gcc mode ? If so, are these two values you specify above ( "i386-pc-win32" or "i386-pc-mingw32" ) documented anywhere ? If this is not the target option you have mentioned, is that target option ( maybe with a single - ) documented anywhere ?<div class="HOEnZb">
<div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>