Skip to content

Commit 080053c

Browse files
committed
Add -fprofile-update=atomic
1 parent 203d5c6 commit 080053c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,12 @@ if(IPC_TOOLKIT_WITH_CODE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
258258
target_compile_options(ipc_toolkit PUBLIC
259259
-g # generate debug info
260260
--coverage # sets all required flags
261+
-fprofile-update=atomic
262+
)
263+
target_link_options(ipc_toolkit PUBLIC
264+
--coverage
265+
-fprofile-update=atomic
261266
)
262-
target_link_options(ipc_toolkit PUBLIC --coverage)
263267
endif()
264268

265269
################################################################################

0 commit comments

Comments
 (0)