mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +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")
|
CACHE BOOL "Build PuTTY with debug() statements enabled")
|
||||||
set(PUTTY_FUZZING OFF
|
set(PUTTY_FUZZING OFF
|
||||||
CACHE BOOL "Build PuTTY binaries suitable for fuzzing, NOT FOR REAL USE")
|
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
|
set(STRICT OFF
|
||||||
CACHE BOOL "Enable extra compiler warnings and make them errors")
|
CACHE BOOL "Enable extra compiler warnings and make them errors")
|
||||||
@ -76,3 +78,6 @@ endif()
|
|||||||
if(PUTTY_FUZZING)
|
if(PUTTY_FUZZING)
|
||||||
add_compile_definitions(FUZZING)
|
add_compile_definitions(FUZZING)
|
||||||
endif()
|
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