Skip to content

Commit

Permalink
disable glibcxx_assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Dec 15, 2023
1 parent dd99016 commit a63dae4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions utils/mlir_wheels/patches/glibcxx_assertions.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 0699a8586fcc..ea8ac624d5f4 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -110,7 +110,7 @@ if( LLVM_ENABLE_ASSERTIONS )
endif()
endif()
# Enable assertions in libstdc++.
- add_compile_definitions(_GLIBCXX_ASSERTIONS)
+# add_compile_definitions(_GLIBCXX_ASSERTIONS)
# Cautiously enable the extensive hardening mode in libc++.
if((DEFINED LIBCXX_HARDENING_MODE) AND
(NOT LIBCXX_HARDENING_MODE STREQUAL "extensive"))
1 change: 1 addition & 0 deletions utils/mlir_wheels/scripts/apply_patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -uxo pipefail

# note that space before slash is important
PATCHES="\
glibcxx_assertions \
mscv \
register_test_pass \
"
Expand Down

0 comments on commit a63dae4

Please sign in to comment.