[libcxx-commits] [PATCH] D121244: [libc++] Don't manually override NDEBUG in the dylib build

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 9 07:05:55 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0f622bd281bd: [libc++] Don't manually override NDEBUG in the dylib build (authored by ldionne).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121244/new/

https://reviews.llvm.org/D121244

Files:
  libcxx/CMakeLists.txt
  libcxx/benchmarks/algorithms.bench.cpp


Index: libcxx/benchmarks/algorithms.bench.cpp
===================================================================
--- libcxx/benchmarks/algorithms.bench.cpp
+++ libcxx/benchmarks/algorithms.bench.cpp
@@ -151,7 +151,6 @@
 
 template <class T>
 void sortValues(T& V, Order O) {
-  assert(std::is_sorted(V.begin(), V.end()));
   switch (O) {
   case Order::Random: {
     std::random_device R;
Index: libcxx/CMakeLists.txt
===================================================================
--- libcxx/CMakeLists.txt
+++ libcxx/CMakeLists.txt
@@ -675,8 +675,6 @@
 endif()
 
 # Assertion flags =============================================================
-define_if(LIBCXX_ENABLE_ASSERTIONS -UNDEBUG)
-define_if_not(LIBCXX_ENABLE_ASSERTIONS -DNDEBUG)
 define_if(LIBCXX_ENABLE_ASSERTIONS -D_LIBCPP_DEBUG=0)
 define_if(LIBCXX_DEBUG_BUILD -D_DEBUG)
 if (LIBCXX_ENABLE_ASSERTIONS AND NOT LIBCXX_DEBUG_BUILD)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121244.414089.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220309/50a9ea45/attachment.bin>


More information about the libcxx-commits mailing list