File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ endif()
26
26
27
27
ExternalProject_Add (bundled-luzer
28
28
GIT_REPOSITORY https://github.com/ligurio/luzer
29
- GIT_TAG 82d41c5f350296ca351e785a24c914165a0e8033
29
+ GIT_TAG ligurio/gh-xxxx-build-sanitizer-libs
30
30
GIT_PROGRESS TRUE
31
31
GIT_SHALLOW FALSE
32
32
SOURCE_DIR ${LUZER_DIR} /source
Original file line number Diff line number Diff line change @@ -16,11 +16,20 @@ lapi_tests_make_lua_path(LUA_PATH
16
16
${CMAKE_CURRENT_SOURCE_DIR} /?.lua
17
17
)
18
18
19
+ set (DSO_SANITIZER_PATH "${PROJECT_BINARY_DIR} /luzer/build/luzer" )
20
+ set (DSO_ASAN_PATH "${DSO_SANITIZER_PATH} /asan_with_fuzzer.so" )
21
+ set (DSO_UBSAN_PATH "${DSO_SANITIZER_PATH} /ubsan_with_fuzzer.so" )
22
+
23
+ if (ENABLE_ASAN OR ENABLE_UBSAN )
24
+ set (LD_PRELOAD_LIBS "${DSO_ASAN_PATH} :${DSO_UBSAN_PATH} " )
25
+ endif ()
26
+
19
27
list (APPEND TEST_ENV
20
28
"LUA_PATH=${LUA_PATH} ;"
21
29
"LUA_CPATH=${LUA_CPATH} ;"
22
30
"ASAN_OPTIONS=detect_odr_violation=0;"
23
31
"LD_DYNAMIC_WEAK=1;"
32
+ "LD_PRELOAD=${LD_PRELOAD_LIBS} ;"
24
33
)
25
34
26
35
function (create_test )
You can’t perform that action at this time.
0 commit comments