I'm trying to build an open source project with llvm-gcc 4.2
with -emit-llvm
flag.
However I get many errors due to warning flags.
Example of these errors:
cc1: error: unrecognized command line option "-Warray-bounds"
cc1: error: unrecognized command line option "-Wjump-misses-init"
cc1: error: unrecognized command line option "-Wvla"
cc1: error: unrecognized command line option "-Wignored-qualifiers"
cc1: error: unrecognized command line option "-Wlogical-op"
cc1: error: unrecognized command line option "-fexcess-precision=fast"
In clang
I would use -Wno-error
to ignore them, but that doesn't seem to work with llvm-gcc
.
Manually removing the flags does not seem reasonable considering that there are 144 Makefiles
.
How would I approach this problem?