Fix: CMake: Disable jemalloc/valgrind when ASAN options are enabled.

These are incompatible with eachother. ASAN takes over, as it is
disabled by default, while jemalloc is enabled by default.

Pull Request: https://projects.blender.org/blender/blender/pulls/131158
This commit is contained in:
Bastien Montagne
2024-11-29 15:35:37 +01:00
committed by Gitea
parent 8a97d33733
commit 9e6387b2a0

View File

@@ -976,6 +976,10 @@ Can cause linking issues due to too large binary size."
OFF
)
mark_as_advanced(WITH_COMPILER_ASAN_EXTERN)
set_and_warn_incompatible(WITH_COMPILER_ASAN WITH_MEM_JEMALLOC OFF)
set_and_warn_incompatible(WITH_COMPILER_ASAN WITH_MEM_VALGRIND OFF)
set_and_warn_incompatible(WITH_COMPILER_ASAN_EXTERN WITH_MEM_JEMALLOC OFF)
set_and_warn_incompatible(WITH_COMPILER_ASAN_EXTERN WITH_MEM_VALGRIND OFF)
option(WITH_COMPILER_CODE_COVERAGE "\
Build and link with code coverage support (only for Debug targets)."