mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix Python module test failing with macOS + address sanitizer
Based on patch by Ankit Meel. Ref D10877
This commit is contained in:
parent
5beaecb33e
commit
788f3d72cf
1 changed files with 8 additions and 0 deletions
|
|
@ -10,6 +10,14 @@ function(add_blender_as_python_module_test testname testscript)
|
|||
NAME ${testname}
|
||||
COMMAND ${TEST_PYTHON_EXE} ${testscript} ${ARGN}
|
||||
)
|
||||
|
||||
# On macOS, asan library must be loaded early.
|
||||
if(APPLE AND WITH_COMPILER_ASAN)
|
||||
set_tests_properties(
|
||||
${testname}
|
||||
PROPERTIES ENVIRONMENT DYLD_INSERT_LIBRARIES=${COMPILER_ASAN_LIBRARY}
|
||||
)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
add_blender_as_python_module_test(import_bpy ${CMAKE_CURRENT_LIST_DIR}/import_bpy.py ${CMAKE_INSTALL_PREFIX_WITH_CONFIG})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue