[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
Mon Feb 13 19:42:19 PST 2023


sunshaoce created this revision.
sunshaoce added reviewers: dim, aaron.ballman, rsmith.
Herald added a project: All.
sunshaoce requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143975

Files:
  libcxx/src/CMakeLists.txt


Index: libcxx/src/CMakeLists.txt
===================================================================
--- libcxx/src/CMakeLists.txt
+++ libcxx/src/CMakeLists.txt
@@ -65,6 +65,8 @@
   verbose_abort.cpp
   )
 
+add_definitions("-Wno-user-defined-literals")
+
 if (LIBCXX_ENABLE_DEBUG_MODE OR LIBCXX_ENABLE_BACKWARDS_COMPATIBILITY_DEBUG_MODE_SYMBOLS)
   list(APPEND LIBCXX_SOURCES
     debug.cpp


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143975.497186.patch
Type: text/x-patch
Size: 392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230214/06658500/attachment.bin>


More information about the libcxx-commits mailing list