[cfe-dev] clang + cygwin + -ferror-limit does not work when there are no errors
Guilherme
guibufolo+llvm at gmail.com
Wed Jan 28 09:36:00 PST 2015
Hello,
I was building and notices something strange. When build errors
occurrs all works fine but when no errors are present, the flag is
passed to gcc. Same thing happens with the -fcolor-diagnostic flag.
Two odd things here:
1. Why is the flag passed on to gcc?
2. Why is gcc being used at all?
Console output:
uidw8099 at FRL2T93G ~/playground/SM_Test/build master $clang -Werror
-pedantic -xc -c -MD -MF int_sm.o.dep -std=c99 -ferror-limit=10
../int_Yes_StateMachine.c -o int_sm.o
(errors properly printed)
2 errors generated.
uidw8099 at FRL2T93G ~/playground/SM_Test/build master $clang -Werror
-pedantic -xc -c -MD -MF int_sm.o.dep -std=c99 -ferror-limit=10
../int_Yes_StateMachine.c -o int_sm.o
gcc: error: unrecognized command line option ‘-ferror-limit=10’
clang: error: assembler (via gcc) command failed with exit code 1
(use -v to see invocation)
What is going on here?
Thank you.
More information about the cfe-dev
mailing list