[PATCH] D142279: [cmake] Use LLVM_ENABLE_ASSERTIONS to enable assertions in libstdc++
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 06:58:22 PST 2023
foad updated this revision to Diff 495113.
foad added a comment.
Stop using generator expressions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142279/new/
https://reviews.llvm.org/D142279
Files:
llvm/cmake/modules/HandleLLVMOptions.cmake
Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -81,6 +81,8 @@
endforeach()
endif()
endif()
+ # Enable assertions in libstdc++.
+ add_compile_definitions(_GLIBCXX_ASSERTIONS)
endif()
if(LLVM_ENABLE_EXPENSIVE_CHECKS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142279.495113.patch
Type: text/x-patch
Size: 404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230206/fbd60755/attachment.bin>
More information about the llvm-commits
mailing list