1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/cmake/modules
Reid Kleckner 60f04f6ae0 [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
..
AddLLVM.cmake [X86] Quick fix for build bot failure (r297127) due to unused variable. 2017-03-07 08:56:27 +00:00
AddLLVMDefinitions.cmake
AddOCaml.cmake [OCaml] Install .mli (interface) files 2016-10-01 09:26:23 +00:00
AddSphinxTarget.cmake Revert r297516 - Respect CMAKE_INSTALL_MANDIR for sphinx generated manpages 2017-03-11 02:24:13 +00:00
CheckAtomic.cmake
CheckCompilerVersion.cmake Fix the MSVC version check. 2017-01-03 23:12:36 +00:00
CheckLinkerFlag.cmake Add -Wl,-color-diagnostics if a linker supports the option. 2017-01-11 22:55:35 +00:00
ChooseMSVCCRT.cmake
CMakeLists.txt cmake: Don't try to install exports if there aren't any 2016-11-08 05:02:18 +00:00
CrossCompile.cmake CMake: make LLVM_OPTIMIZED_TABLEGEN friendly with LLVM_EXTERNAL_CLANG_SOURCE_DIR 2016-11-11 04:27:59 +00:00
DetermineGCCCompatible.cmake CMake is funky on detecting Intel 17 as GCC compatible. 2017-01-26 23:50:18 +00:00
FindOCaml.cmake
FindSphinx.cmake
GenerateVersionFromCVS.cmake
GetHostTriple.cmake Improve CMake output of host and target triple 2016-09-27 18:08:40 +00:00
GetSVN.cmake
HandleLLVMOptions.cmake [cmake] Refactor warning flag logic to use Unix warnings with clang-cl 2017-03-16 17:05:16 +00:00
HandleLLVMStdlib.cmake Remove LLVM_ENABLE_LIBCXXABI 2016-08-04 10:24:48 +00:00
LLVM-Config.cmake [CMake] Fix is_llvm_target_library and support out-of-order components 2017-02-08 20:58:37 +00:00
LLVMConfig.cmake.in [CMake] Fix pthread handling for out-of-tree builds 2017-02-10 01:59:20 +00:00
LLVMConfigVersion.cmake.in
LLVMExternalProjectUtils.cmake [CMake] Multi-target builtins build 2016-12-12 23:15:10 +00:00
LLVMInstallSymlink.cmake
LLVMProcessSources.cmake
TableGen.cmake CMake: Don't install llvm-tblgen twice 2017-03-09 19:24:07 +00:00
VersionFromVCS.cmake CMake: Clean up VersionFromVCS.cmake 2017-03-02 22:05:13 +00:00