Skip to content

Commit

Permalink
Merge branch 'SpeedupCodeCoverage' into 'master'
Browse files Browse the repository at this point in the history
Speedup code coverage

See merge request ogs/ogs!5157
  • Loading branch information
bilke committed Nov 26, 2024
2 parents 85ed7b5 + 5ecd4bc commit 8da24ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cmake/Coverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if(NOT (OGS_COVERAGE AND PROJECT_IS_TOP_LEVEL))
endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
set(CMAKE_CXX_FLAGS_DEBUG "-g -Og --coverage")
set(CMAKE_CXX_FLAGS_DEBUG "-g -Og -DEIGEN_NO_DEBUG --coverage")
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -fprofile-abs-path")
endif()
Expand Down

0 comments on commit 8da24ed

Please sign in to comment.