travis: similar fix to PR
@@ -197,11 +197,14 @@ before_script:
script:
- ninja
- |
- if [[ "$FAST" == "ON" || "$ASAN" = "ON" ]]; then
- if [[ "$ASAN" = "ON" ]]; then
- export LD_PRELOAD=$(find /usr/ -name '*libclang_rt.ubsan_standalone_cxx-x86_64.so')
- fi
+ if [[ "$FAST" == "ON" ]]; then
ninja run_all
+ elif [[ "$ASAN" = "ON" && "$TRAVIS_OS_NAME" == "linux" ]]; then
+ # preload required libraries (LD_PRELOAD is a space separated list)
+ UBSAN_LIBRARY=$(find /usr/ -name '*libclang_rt.ubsan_standalone_cxx-x86_64.so')
+ LD_PRELOAD="$UBSAN_LIBRARY" ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer) ninja run_all
+ elif [[ "$ASAN" = "ON" ]]; then
+ ASAN_OPTIONS=symbolize=1 ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer) ninja run_all
else
ninja install
ninja run_all && kdb run_all
