0

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?

4

1 回答 1

1

我正在努力搜索有关的最新信息llvm-gcc,但失败了。我得出的结论是,这是一个已死的项目,它是以前 LLVM 版本的一部分,但不再积极开发。因此,它不支持与当前 GCC 版本相同的警告集,并且您不能期望它使用相同的命令行。

你得到的错误告诉你哪些 CLI 选项不受支持,你别无选择,只能删除它们或停止使用 llvm-gcc 并切换到更现代的东西。根据 LLVM 网站,您要查找的项目名为dragonegg

http://dragonegg.llvm.org/

于 2014-05-10T21:38:45.090 回答