mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00: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
10 lines
284 B
CMake
10 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()
|