File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ option (WITH_OFX "compile with ofx support (needs LibOFX)" ON)
5454option (WITH_PYTHON "enable python plugin and bindings" OFF )
5555option (ENABLE_BINRELOC "compile with binary relocation support" ON )
5656option (DISABLE_NLS "do not use Native Language Support" OFF )
57+ option (COVERAGE "Instrument an Asan build for coverage reporting" OFF )
5758# ############################################################
5859
5960# These are also settable from the command line in a similar way.
@@ -623,6 +624,9 @@ elseif(UNIX)
623624 set (ASAN_DYNAMIC_LIB_ENV "LD_PRELOAD=${PRELOADS} ;ASAN_OPTIONS=${ASAN_OPTIONS} " )
624625endif ()
625626set (ASAN_BUILD_OPTIONS -fsanitize=address -fsanitize=undefined)
627+ if (COVERAGE)
628+ list (APPEND ASAN_BUILD_OPTIONS --coverage)
629+ endif ()
626630set (ASAN_COMPILE_OPTIONS -g ${ASAN_BUILD_OPTIONS} )
627631add_compile_options ("$<$<CONFIG:Asan>:${ASAN_COMPILE_OPTIONS} >" )
628632add_link_options ("$<$<CONFIG:Asan>:${ASAN_BUILD_OPTIONS} >" )
You can’t perform that action at this time.
0 commit comments