3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-29 00:15:00 +02:00

[cmake] Prepend UBSan options to Env

This commit is contained in:
Nils Wentzell 2018-04-24 23:59:32 +02:00
parent 6aa4eee0f4
commit 6be41fb47a
2 changed files with 2 additions and 2 deletions

View File

@ -30,5 +30,5 @@ endforeach()
# Set UBSan Options for all tests
set_property(TEST ${all_tests} PROPERTY
ENVIRONMENT
UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1
UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1:$ENV{UBSAN_OPTIONS}
)

View File

@ -18,5 +18,5 @@ set_property(TEST ${all_tests} PROPERTY
ENVIRONMENT
PYTHONPATH=${CMAKE_BINARY_DIR}/python:$ENV{PYTHONPATH}
LD_PRELOAD=$<$<BOOL:${ASAN}>:${ASAN_RT_LIBRARY}>:$<$<BOOL:${UBSAN}>:${UBSAN_RT_LIBRARY}>
UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1
UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1:$ENV{UBSAN_OPTIONS}
)