Skip to content

Ignore -no_exported_symbols when the debug dylib is used (rdar://152244838) #633

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

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from

Conversation

jonathanpenn
Copy link
Contributor

The stub executor needs to trampoline to the entry point in the debug dylib. But linking with -no_exported_symbols strips it and launching the app fails to find the symbol.

Handles both the LD_EXPORT_SYMBOLS build setting and manual flags added to OTHER_LDFLAGS.

Cherry-picked from b133772.

…2244838) (swiftlang#554)

The stub executor needs to trampoline to the entry point in the debug dylib. But linking with `-no_exported_symbols` strips it and launching the app fails to find the symbol.

Handles both the `LD_EXPORT_SYMBOLS` build setting and manual flags added to `OTHER_LDFLAGS`.
@jonathanpenn jonathanpenn changed the base branch from main to release/6.2 July 2, 2025 20:55
@jonathanpenn jonathanpenn enabled auto-merge (squash) July 3, 2025 02:53
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