-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
separate debug symbols into a dbg file #1476
Conversation
src/tbb/CMakeLists.txt
Outdated
@@ -126,6 +126,21 @@ target_link_libraries(tbb | |||
${TBB_COMMON_LINK_LIBS} | |||
) | |||
|
|||
#strip symbols to a separate dbg file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#strip symbols to a separate dbg file | |
# Strip debug symbols into a separate .dbg file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. @pavelkumbrasev what do you think?
@@ -126,6 +126,25 @@ target_link_libraries(tbb | |||
${TBB_COMMON_LINK_LIBS} | |||
) | |||
|
|||
# Strip debug symbols into a separate .dbg file | |||
if(TBB_LINUX_SEPARATE_DBG) | |||
if(NOT CMAKE_BUILD_TYPE STREQUAL "release") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we strip it for debug
configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The debug symbols will not be stripped in any default configuration. If user set the BUILD_TYPE='debug' or relwithdebinfo and explicitly set the TBB_LINUX_SEPARATE_DBG switch, then the symbols get stripped to a different file and linked to binary. Whereas when BUILD_TYPE is 'release' the .dbg file has only the linkage information and hence creation of .dbg is avoided.
* separate debug symbols into a separate .dbg file when TBB_LINUX_SEPARATE_DBG is set.
Description
Add a comprehensive description of proposed changes
Fixes # - issue number(s) if exists
Type of change
Choose one or multiple, leave empty if none of the other choices apply
Add a respective label(s) to PR if you have permissions
Tests
Documentation
Breaks backward compatibility
Notify the following users
List users with
@
to send notificationsOther information