diff options
author | Ray Molenkamp <github@lazydodo.com> | 2022-11-01 21:46:15 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2022-11-01 21:46:15 +0300 |
commit | f8699881d6bf1c02586d356b1c816e77e144ad32 (patch) | |
tree | 6c02656adedcd0b4b84ab3bcc7f47dc60024687c /build_files | |
parent | f66236a827c82bffd9f31ca2a7919e865a0397e0 (diff) |
CMake/MSVC: Disable ASAN for developer builds
ASAN is more often broken than working depending on the MSVC version
you have. As it is causing too many support incidents of people that
unknowingly turned ASAN on by running `make developer` and running
into issues starting blender due to the broken ASAN support in MSVC.
This commit changes the default not enable it for MSVC in the
developer profile. Devs that still want to enable it can do so though
turning WITH_COMPILER_ASAN on in their CMakeCache.txt or by running
`make developer asan`
Diffstat (limited to 'build_files')
-rw-r--r-- | build_files/cmake/config/blender_developer.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build_files/cmake/config/blender_developer.cmake b/build_files/cmake/config/blender_developer.cmake index 1f1a100d958..ebc5727a79c 100644 --- a/build_files/cmake/config/blender_developer.cmake +++ b/build_files/cmake/config/blender_developer.cmake @@ -8,7 +8,11 @@ set(WITH_ASSERT_ABORT ON CACHE BOOL "" FORCE) set(WITH_BUILDINFO OFF CACHE BOOL "" FORCE) -set(WITH_COMPILER_ASAN ON CACHE BOOL "" FORCE) +# Sadly ASAN is more often broken than working with MSVC do not enable it in the +# developer profile for now. +if(NOT WIN32) + set(WITH_COMPILER_ASAN ON CACHE BOOL "" FORCE) +endif() set(WITH_CYCLES_NATIVE_ONLY ON CACHE BOOL "" FORCE) set(WITH_DOC_MANPAGE OFF CACHE BOOL "" FORCE) set(WITH_GTESTS ON CACHE BOOL "" FORCE) |