1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

Add coverage flags

This commit is contained in:
Pavel I. Kryukov 2021-04-17 22:44:50 +03:00 committed by Simon Tatham
parent b00e5fb129
commit 3d55a2befb

View File

@ -11,6 +11,8 @@ set(PUTTY_DEBUG OFF
CACHE BOOL "Build PuTTY with debug() statements enabled")
set(PUTTY_FUZZING OFF
CACHE BOOL "Build PuTTY binaries suitable for fuzzing, NOT FOR REAL USE")
set(PUTTY_COVERAGE OFF
CACHE BOOL "Build PuTTY binaries suitable for code coverage analysis")
set(STRICT OFF
CACHE BOOL "Enable extra compiler warnings and make them errors")
@ -76,3 +78,6 @@ endif()
if(PUTTY_FUZZING)
add_compile_definitions(FUZZING)
endif()
if(PUTTY_COVERAGE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage -g ")
endif()