[libcxx] Don't add -Wall when building in MSVC mode
authorMartin Storsjö <martin@martin.st>
Fri, 5 Mar 2021 12:46:30 +0000 (14:46 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 5 Mar 2021 21:48:02 +0000 (23:48 +0200)
commit1540646dbd18b7d7637a9f8ba64b53e0417ff5e4
treeec1826b7a961e3f1df5391dfbedff8d3ebb7db52
parent78d0e91865f6038adb23ec272c3e1e7e1525057f
[libcxx] Don't add -Wall when building in MSVC mode

The MSVC -Wall (or /Wall) option maps (in clang-cl) to the GCC style
option -Weverything, which we don't really want. Instead use -W4 which
is the corresponding MSVC option.

This silences the build with clang-cl, which previously used to
output 100 warnings per translation unit.

Differential Revision: https://reviews.llvm.org/D98035
libcxx/CMakeLists.txt