Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/awelzel/fprofile-update-at…
Browse files Browse the repository at this point in the history
…omic'

* origin/topic/awelzel/fprofile-update-atomic:
  Compile coverage builds with -fprofile-update=atomic
  • Loading branch information
awelzel committed Jun 11, 2024
2 parents aeca56d + f07d6ca commit 2df3b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SetDefaultCompileFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if ("${PROJECT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")

if ("${_build_type_upper}" STREQUAL "DEBUG")
if (ENABLE_COVERAGE)
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} --coverage")
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} --coverage -fprofile-update=atomic")
endif ()
# manual add of -g works around its omission in FreeBSD's CMake port
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -g -DDEBUG -DBRO_DEBUG")
Expand Down

0 comments on commit 2df3b8e

Please sign in to comment.