<div dir="ltr"><div>First, it would be nice if Clang used the integrated assembler on Cygwin by default. I don't recall why it is disabled by default. Try passing -integrated-as to clang to get this behavior locally.</div><div><br></div>I believe GCC is being used because finding an appropriate 'as' to run (it could be triple prefixed) is hard.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 9:36 AM, Guilherme <span dir="ltr"><<a href="mailto:guibufolo+llvm@gmail.com" target="_blank">guibufolo+llvm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I was building and notices something strange. When build errors<br>
occurrs all works fine but when no errors are present, the flag is<br>
passed to gcc. Same thing happens with the -fcolor-diagnostic flag.<br>
<br>
Two odd things here:<br>
<br>
1. Why is the flag passed on to gcc?<br>
2. Why is gcc being used at all?<br>
<br>
Console output:<br>
<br>
uidw8099@FRL2T93G ~/playground/SM_Test/build master $clang -Werror<br>
-pedantic -xc -c -MD -MF int_sm.o.dep -std=c99 -ferror-limit=10<br>
../int_Yes_StateMachine.c -o int_sm.o<br>
(errors properly printed)<br>
2 errors generated.<br>
<br>
uidw8099@FRL2T93G ~/playground/SM_Test/build master $clang -Werror<br>
-pedantic -xc -c -MD -MF int_sm.o.dep -std=c99 -ferror-limit=10<br>
../int_Yes_StateMachine.c -o int_sm.o<br>
gcc: error: unrecognized command line option ‘-ferror-limit=10’<br>
clang: error: assembler (via gcc) command failed with exit code 1<br>
(use -v to see invocation)<br>
<br>
What is going on here?<br>
<br>
Thank you.<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">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/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>