[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
Tue Feb 7 00:15:41 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb4d51eafc466: [cmake] Use LLVM_ENABLE_ASSERTIONS to enable assertions in libstdc++ (authored by foad).
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.495396.patch
Type: text/x-patch
Size: 404 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230207/266b0e9d/attachment.bin>
More information about the llvm-commits
mailing list