File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1- name : Ubuntu 22.04 CI (GCC 11)
1+ name : Ubuntu 22.04 CI (GCC 11) with Sanitizers
22
33on : [push, pull_request]
44
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ add_library(is_utf8 STATIC is_utf8.cpp)
77target_include_directories (is_utf8 PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} > )
88target_include_directories (is_utf8 PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include>" )
99
10+ if (IS_UTF8_SANITIZE)
11+ target_compile_options (is_utf8 INTERFACE -fsanitize=address -fno-omit-frame-pointer -fno-sanitize-recover=all )
12+ target_compile_definitions (is_utf8 INTERFACE ASAN_OPTIONS=detect_leaks=1)
13+ target_link_libraries (is_utf8 INTERFACE -fsanitize=address -fno-omit-frame-pointer -fno-sanitize-recover=all )
14+ endif ()
15+
1016if (MSVC )
1117 if ("${MSVC_TOOLSET_VERSION} " STREQUAL "140" )
1218 target_compile_options (is_utf8 INTERFACE /W0 /sdl)
You can’t perform that action at this time.
0 commit comments