hanchenye-llvm-project/llvm/cmake
Chandler Carruth 25657e8c5d [gtest] Detect warning flags using the positive spelling.
Some GCC versions will accept any warning flag name after a '-Wno-',
which would cause us to try to disable warnings with names GCC didn't
understand. This will silently succeed unless there is some other output
from GCC in which case we get weird cc1plus warnings about the warning
name being bogus.

There is still the issue that gtest sets warning flags for building
gtest-all.cc using weird 'add_definitions' and the fact that there is
a GCC version which warns on the variadic macro usage in gtest under
-pedantic, but has no flag analogous to Clang's
-Wgnu-zero-variadic-macro-argumnets to suppress this warning. I haven't
been able to come up with any good solution here. The closest is to turn
off -pedantic for those versions of GCC, but that seems really nasty.
For now, those versinos of GCC aren't warning clean. If anyone is broken
by this, I'll work on CMake logic to detect and disable -pedantic in
these cases.

llvm-svn: 291299
2017-01-06 23:16:00 +00:00
..
modules [gtest] Detect warning flags using the positive spelling. 2017-01-06 23:16:00 +00:00
platforms cmake: Simplify the iOS.cmake toolchain 2016-02-12 23:36:05 +00:00
README
config-ix.cmake [gtest] Detect warning flags using the positive spelling. 2017-01-06 23:16:00 +00:00
config.guess [CMAKE] Update build on recent Haiku 2016-02-26 17:01:45 +00:00
dummy.cpp
nsis_icon.ico
nsis_logo.bmp

README

See docs/CMake.html for instructions on how to build LLVM with CMake.