summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2023-03-19 10:15:14 +0100
committerNikolas Klauser <nikolasklauser@berlin.de>2023-03-19 12:51:37 +0100
commite6cc0faa73823387c31e96be132187643f2d7aee (patch)
tree313e0c5b01dbc0791656de458ee6252dda9bc927 /runtimes
parent4601bcdb7ed3168053aa6d70abedb17c3fffa0d2 (diff)
downloadllvm-e6cc0faa73823387c31e96be132187643f2d7aee.tar.gz
[runtimes] Don't use -Wall on clang-cl builds
`-Wall` on clang-cl is equivalent to `-Weverything` on clang. We already add the correct warning flag depending whether we are in an MSVC-like environment, so just remove it from the list of flags that get passed unconditionally. Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D146378
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/cmake/Modules/WarningFlags.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/runtimes/cmake/Modules/WarningFlags.cmake b/runtimes/cmake/Modules/WarningFlags.cmake
index 8f78e19f1f35..d06409841dc9 100644
--- a/runtimes/cmake/Modules/WarningFlags.cmake
+++ b/runtimes/cmake/Modules/WarningFlags.cmake
@@ -12,7 +12,6 @@ function(cxx_add_warning_flags target enable_werror enable_pedantic)
endif()
# TODO: Should -Wconversion be enabled?
target_add_compile_flags_if_supported(${target} PRIVATE
- -Wall
-Wextra
-Wnewline-eof
-Wshadow