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

add option for generating release pdb files #1655

Open
wants to merge 1 commit into
base: onetbb_2021.2_ov
Choose a base branch
from

Conversation

xufang-lisa
Copy link
Contributor

Description

Add an option for generating pdb files when building release libraries, the default value is OFF.

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
  • 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
  • not needed

Documentation

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

Breaks backward compatibility

  • Yes
  • No
  • Unknown

Notify the following users

List users with @ to send notifications

Other information

Comment on lines +79 to +82
if (TBB_RELEASE_PDB AND CMAKE_BUILD_TYPE MATCHES "Release")
set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} /Zi)
set(TBB_LIB_LINK_FLAGS ${TBB_LIB_LINK_FLAGS} /DEBUG /OPT:REF /OPT:ICF)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it essentially the same as RelWithDebInfo? Meaning you'll have same /Zi and /DEBUG flags there and .pdb files as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

RelWithDebInfo also changes its default for inlined functions from /Ob2 in Release to /Ob1 in RelWithDebInfo

Not sure, how it affects TBB performance.

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