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

[link.py] Be explicit about if/when we expand -l flag. NFC #23336

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 8, 2025

In most cases we prefer to leave it up to the linker to do this.

@sbc100 sbc100 requested a review from kripken January 8, 2025 16:51
path = find_library(name, state.lib_dirs)
if path:
break
if not settings.RELOCATABLE:
Copy link
Member

Choose a reason for hiding this comment

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

Why was there no RELOCATABLE check before? Was it not needed?

Copy link
Member

Choose a reason for hiding this comment

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

(maybe related to the test failures?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed, we were needlessly expanding all -l flags even though wasm-ld does this.

In most cases we prefer to leave it up to the linker to do this.
@sbc100 sbc100 merged commit 90f2c57 into emscripten-core:main Jan 8, 2025
26 of 29 checks passed
@sbc100 sbc100 deleted the so_lib_search branch January 8, 2025 21:29
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