<div dir="ltr">+Reid for clang-cl info<br><br><div class="gmail_quote"><div dir="ltr">On Tue, Mar 6, 2018 at 6:49 AM Ted Mielczarek via cfe-users <<a href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there,<br>
<br>
We're continuing to work on making Firefox build with clang-cl in more configurations, and one of my colleagues recently wondered[1] if we could generate Makefile dependencies with clang-cl the same way we would with clang or gcc (-MP -MD etc) instead of using the wrapper script[2] that we use with MSVC that parses the output of -showIncludes. Passing these options to clang-cl with `-Xclang` doesn't seem to work, however:<br>
<br>
$ clang-cl -Fohello.obj -c hello.cpp -Xclang -MP -Xclang -MD -Xclang -MF -Xclang bar<br>
error: unknown argument: '-MD'<br>
error: unknown argument: '-MF'<br>
<br>
Is this something we could make work?<br>
<br>
Regards,<br>
-Ted<br>
<br>
1. <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1340588" rel="noreferrer" target="_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=1340588</a><br>
2. <a href="https://dxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuild/action/cl.py" rel="noreferrer" target="_blank">https://dxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuild/action/cl.py</a><br>
_______________________________________________<br>
cfe-users mailing list<br>
<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
</blockquote></div></div>