Skip to content
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

Merged
merged 7 commits into from
Aug 20, 2024
Merged

Conversation

sarathnandu
Copy link
Contributor

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

  • bug fix - change that fixes an issue
  • [x ] new feature - change that adds functionality
  • tests - change in tests
  • infrastructure - change in infrastructure and CI
  • documentation - documentation update

Tests

  • added - required for new features and some bug fixes
  • [x ] not needed

Documentation

  • updated in # - add PR number
  • needs to be updated
  • not needed

Breaks backward compatibility

  • [x ] Yes
  • No
  • Unknown

Notify the following users

List users with @ to send notifications

Other information

CMakeLists.txt Outdated Show resolved Hide resolved
src/tbb/CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
src/tbb/CMakeLists.txt Show resolved Hide resolved
src/tbb/CMakeLists.txt Outdated Show resolved Hide resolved
@@ -126,6 +126,21 @@ target_link_libraries(tbb
${TBB_COMMON_LINK_LIBS}
)

#strip symbols to a separate dbg file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#strip symbols to a separate dbg file
# Strip debug symbols into a separate .dbg file

src/tbb/CMakeLists.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@isaevil isaevil left a 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")
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@sarathnandu sarathnandu merged commit 2543c7f into master Aug 20, 2024
25 checks passed
@sarathnandu sarathnandu deleted the dev/sarathna/dbg_symbols branch August 20, 2024 16:06
kboyarinov pushed a commit that referenced this pull request Oct 1, 2024
* separate debug symbols into a separate .dbg file when TBB_LINUX_SEPARATE_DBG is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants