hanchenye-llvm-project/llvm/cmake
Reid Kleckner 9f3585dad3 [cmake] Refactor warning flag logic to use Unix warnings with clang-cl
Summary:
clang-cl understands the GCC-style -W[no-]foo flags, and for the most
part ignores MSVC -wd flags. So, let's pass the curated set of warning
flags we use on Unix on Windows. We can also stop passing /W4 -wd*,
which for the most part corresponds to -Wall -Wextra with a bunch of
flags that we mostly ignore.

I had to disable -Wnon-virtual-dtor on Windows, because it fires on
every COM class ever. I filed PR32286 to fix this.

So far I've only found two instances of -Wstring-conversion in the
WinASan code, which I'll fix. Other than that we seem clean.

Reviewers: hans

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D30992

llvm-svn: 297964
2017-03-16 17:05:16 +00:00
..
modules [cmake] Refactor warning flag logic to use Unix warnings with clang-cl 2017-03-16 17:05:16 +00:00
platforms [CMake] Add variable IOS to iOS toolchain 2017-02-17 01:11:41 +00:00
README
config-ix.cmake Detect the existence of pthread_{s,g}etname_np in libpthread on Linux 2017-03-03 21:53:12 +00:00
config.guess
dummy.cpp
nsis_icon.ico
nsis_logo.bmp

README

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