Skip to content

fix: only strip local and debug symbols from macOS binary #28758

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

Merged
merged 1 commit into from
Apr 5, 2025

Conversation

nathanwhit
Copy link
Member

Fixes #28757.

We need to retain the napi symbols in the binary. strip with no flags on macos strips all symbols out of the binary (including global symbols).

Only strip out the local and debug symbols from the binary, retaining the global symbols (which include the napi ones)

@nathanwhit nathanwhit requested a review from littledivy April 4, 2025 23:54
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@nathanwhit nathanwhit enabled auto-merge (squash) April 5, 2025 00:13
@nathanwhit nathanwhit merged commit 457bfc9 into denoland:main Apr 5, 2025
17 checks passed
dsherret pushed a commit that referenced this pull request Apr 5, 2025
Fixes #28757.

We need to retain the napi symbols in the binary. `strip` with no flags
on macos strips all symbols out of the binary (including global
symbols).

Only strip out the local and debug symbols from the binary, retaining
the global symbols (which include the napi ones)
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.

Segmentation fault when importing bullmq after upgrading to Deno v2.2.7
2 participants