Skip to content

Commit

Permalink
Add comments and review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathnandu committed Aug 19, 2024
1 parent 4c08497 commit 3c7e6f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tbb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ target_link_libraries(tbb
${TBB_COMMON_LINK_LIBS}
)

#strip symbols to a separate dbg file
#strip symbols into a separate .dbg file
if(TBB_LINUX_SEPARATE_DBG)
find_program(OBJCOPY_COMMAND objcopy)
if(NOT OBJCOPY_COMMAND)
message(STATUS "objcopy command not found in the system")
message(WARNING "objcopy command not found in the system")
else()
add_custom_command(TARGET tbb POST_BUIL
add_custom_command(TARGET tbb POST_BUILD
COMMAND objcopy --only-keep-debug $<TARGET_FILE:tbb> $<TARGET_FILE:tbb>.dbg
COMMAND objcopy --strip-debug $<TARGET_FILE:tbb>
COMMAND objcopy --add-gnu-debuglink=$<TARGET_FILE:tbb>.dbg $<TARGET_FILE:tbb>
Expand Down

0 comments on commit 3c7e6f2

Please sign in to comment.