mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
0b4d787042
- Multi-stage docker build (final image only 15MB!) - Build in release mode - Fix bug with release mode - Fix compiler being dumb AF - Disable FORTIFY for now - Enable LTO when making a staticly linked release - Fix some gcc specific warnings - Refactor cmake stuff into multiple files
9 lines
284 B
CMake
9 lines
284 B
CMake
if (WITH_COVERAGE)
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
add_compile_options( -fprofile-instr-generate -fcoverage-mapping )
|
|
link_libraries( -fprofile-instr-generate )
|
|
else()
|
|
add_compile_options( --coverage -g0 )
|
|
link_libraries( --coverage )
|
|
endif()
|
|
endif()
|