We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38cbef8 commit 40abd97Copy full SHA for 40abd97
storage/mroonga/vendor/groonga/lib/CMakeLists.txt
@@ -188,3 +188,15 @@ IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" AND
188
CMAKE_C_COMPILER_VERSION VERSION_GREATER "5")
189
ADD_COMPILE_FLAGS(ts/ts_expr_node.c COMPILE_FLAGS "-fno-tree-loop-vectorize")
190
ENDIF()
191
+
192
+# Workaround long compile times with GCC and sanitizers
193
+IF(CMAKE_C_COMPILER_ID STREQUAL "GNU"
194
+ AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "11.99")
195
+ IF(WITH_UBSAN)
196
+ ADD_COMPILE_FLAGS(expr.c COMPILE_FLAGS "-fno-sanitize=undefined")
197
+ ENDIF()
198
+ IF(WITH_ASAN)
199
+ ADD_COMPILE_FLAGS(expr.c COMPILE_FLAGS "-fno-sanitize=address")
200
201
+ENDIF()
202
0 commit comments