[all-commits] [llvm/llvm-project] 154064: [libcxx] Don't add -Wall when building in MSVC mode

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Mar 5 13:48:43 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1540646dbd18b7d7637a9f8ba64b53e0417ff5e4
      https://github.com/llvm/llvm-project/commit/1540646dbd18b7d7637a9f8ba64b53e0417ff5e4
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M libcxx/CMakeLists.txt

  Log Message:
  -----------
  [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




More information about the All-commits mailing list