Skip to content

Disable absl symbolize in Windows Release build#21923

Merged
snnn merged 1 commit intomainfrom
snnn/disable_sym
Aug 30, 2024
Merged

Disable absl symbolize in Windows Release build#21923
snnn merged 1 commit intomainfrom
snnn/disable_sym

Conversation

@snnn
Copy link
Copy Markdown
Contributor

@snnn snnn commented Aug 29, 2024

Description

This change disables Abseil's symbolize functionality in Windows non-debug builds.

Motivation and Context

To solve #21826. Avoid having a dependency on dbghelp.dll.
As I said in another PR, VC++ team's std::stacktrace implementation is more elegant than Abseil's. C++20's std::stacktrace can dynamically detect if the DLL exists or not, so it doesn't have a hard dependency on it.

@snnn
Copy link
Copy Markdown
Contributor Author

snnn commented Aug 30, 2024

I examined the new binary. It no longer depends on dbghelp.dll.

@snnn snnn merged commit 1f879c3 into main Aug 30, 2024
@snnn snnn deleted the snnn/disable_sym branch August 30, 2024 19:03
snnn pushed a commit that referenced this pull request Aug 30, 2024
### Description
This change disables Abseil's symbolize functionality in Windows
non-debug builds.
### Motivation and Context
To solve #21826. Avoid having a dependency on dbghelp.dll.
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.

2 participants