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:
parent
b00e5fb129
commit
3d55a2befb
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user