mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
MDEV-34236 Mroonga build with ASAN/UBSAN with GCC 12+ extremely slow.
Workaround by disabling sanitizer for single source file.
This commit is contained in:
parent
38cbef8b3f
commit
40abd973ab
1 changed files with 12 additions and 0 deletions
|
|
@ -188,3 +188,15 @@ IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" AND
|
|||
CMAKE_C_COMPILER_VERSION VERSION_GREATER "5")
|
||||
ADD_COMPILE_FLAGS(ts/ts_expr_node.c COMPILE_FLAGS "-fno-tree-loop-vectorize")
|
||||
ENDIF()
|
||||
|
||||
# Workaround long compile times with GCC and sanitizers
|
||||
IF(CMAKE_C_COMPILER_ID STREQUAL "GNU"
|
||||
AND CMAKE_C_COMPILER_VERSION VERSION_GREATER "11.99")
|
||||
IF(WITH_UBSAN)
|
||||
ADD_COMPILE_FLAGS(expr.c COMPILE_FLAGS "-fno-sanitize=undefined")
|
||||
ENDIF()
|
||||
IF(WITH_ASAN)
|
||||
ADD_COMPILE_FLAGS(expr.c COMPILE_FLAGS "-fno-sanitize=address")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue