[msvc] Strip /W[0-4] before appending /W4
authorZachary Turner <zturner@google.com>
Tue, 14 Apr 2015 16:57:54 +0000 (16:57 +0000)
committerZachary Turner <zturner@google.com>
Tue, 14 Apr 2015 16:57:54 +0000 (16:57 +0000)
commitdaa55a66a09167498fc8b35b6cdece3636d88b7e
tree1c17cca5cba3f203b4330bfcd97db5937580a8ee
parent66192e4b082f024d2141af3266bf35ffb72537bc
[msvc] Strip /W[0-4] before appending /W4

Certain versions of CMake specify /W3 as part of CMAKE_CXX_FLAGS
by default, before you do anything.  Appending /W4 to the end of
this and using the Ninja generator results in

cl : Command line warning D9025 : overriding '/W3' with '/W4'.

It is not possible to suppress this since it is a command line
warning and not a compiler warning, so we must fix the command
line to contain only one value for /Wn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234907 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake