Add Asan support for clang on windows.
This will currently only work for the RelWithDebInfo configuration since asan does not support the debug crt. for source line information in the reports, you need a copy of llvm-symbolizer in the blender folder or set the ASAN_SYMBOLIZER_PATH environment variable to point to it. Currently (as of 6.0.0) llvm-symbolizer does not ship with the binary clang/llvm distribution. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D3446
This commit is contained in:
@@ -37,7 +37,7 @@ if(NOT WITH_HEADLESS)
|
||||
set(SRC
|
||||
datatoc_icon.c
|
||||
)
|
||||
|
||||
setup_platform_linker_flags()
|
||||
if(WIN32)
|
||||
include_directories(
|
||||
../blenlib
|
||||
@@ -52,8 +52,6 @@ if(NOT WITH_HEADLESS)
|
||||
../../../intern/utfconv/utfconv.c
|
||||
)
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${PLATFORM_LINKFLAGS}")
|
||||
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} ${PLATFORM_LINKFLAGS_DEBUG}")
|
||||
endif()
|
||||
|
||||
include_directories(${PNG_INCLUDE_DIRS})
|
||||
|
Reference in New Issue
Block a user