Skip to content

Commit

Permalink
[INFRA] Use -O1 for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Aug 15, 2024
1 parent 2d81eea commit a3c6a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/coverage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ project (raptor_test_coverage LANGUAGES CXX C)
# Add a custom build type: Coverage

set (CMAKE_CXX_FLAGS_COVERAGE
"${CMAKE_CXX_FLAGS_DEBUG} --coverage -fprofile-arcs -ftest-coverage -fprofile-abs-path"
"${CMAKE_CXX_FLAGS_DEBUG} -O1 --coverage -fprofile-arcs -ftest-coverage -fprofile-abs-path"
CACHE STRING "Flags used by the C++ compiler during coverage builds." FORCE
)
set (CMAKE_C_FLAGS_COVERAGE
"${CMAKE_C_FLAGS_DEBUG} --coverage -fprofile-arcs -ftest-coverage -fprofile-abs-path"
"${CMAKE_C_FLAGS_DEBUG} -O1 --coverage -fprofile-arcs -ftest-coverage -fprofile-abs-path"
CACHE STRING "Flags used by the C compiler during coverage builds." FORCE
)
set (CMAKE_EXE_LINKER_FLAGS_COVERAGE
Expand Down

0 comments on commit a3c6a2a

Please sign in to comment.