[libcxx-commits] [PATCH] D143975: [libcxx] Don't trigger -Wuser-defined-literals for headers in build
Shao-Ce SUN via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 14 08:29:47 PST 2023
sunshaoce updated this revision to Diff 497343.
sunshaoce added a comment.
update
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143975/new/
https://reviews.llvm.org/D143975
Files:
libcxx/CMakeLists.txt
Index: libcxx/CMakeLists.txt
===================================================================
--- libcxx/CMakeLists.txt
+++ libcxx/CMakeLists.txt
@@ -572,8 +572,8 @@
-Werror=return-type -Wextra-semi -Wundef
-Wformat-nonliteral)
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
+ add_definitions("-Wno-user-defined-literals")
target_add_compile_flags_if_supported(${target} PRIVATE
- -Wno-user-defined-literals
-Wno-covered-switch-default
-Wno-suggest-override
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143975.497343.patch
Type: text/x-patch
Size: 617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230214/9f8e2dfa/attachment.bin>
More information about the libcxx-commits
mailing list