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

Don't pass -rpath and -lswiftCore in embedded mode #1516

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jan 1, 2024

These options already aren't passed to the linker when linking statically, we shouldn't pass them in embedded mode either, where everything is linked statically too.

I've been able to reproduce this bug with wasm32-none-none-wasm triples, but this should fix possible issues for other embedded triples too.

@MaxDesiatov MaxDesiatov added the bug Something isn't working label Jan 1, 2024
@MaxDesiatov MaxDesiatov self-assigned this Jan 1, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

These options already aren't passed to the linker when linking statically, we shouldn't pass them in embedded mode either, where everything is linked statically too.
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov changed the title Don't pass -rpath and -lswiftCore for embedded Wasm Don't pass -rpath and -lswiftCore in embedded mode Jan 1, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov requested a review from phausler January 2, 2024 13:02
@MaxDesiatov MaxDesiatov added the embedded Changes related to Embedded Swift label Jan 2, 2024
@phausler
Copy link
Contributor

phausler commented Jan 2, 2024

Looks like this is pretty much the same thing as #1471 (except this seems to be more complete by alleviating the rpath side of it).

@MaxDesiatov MaxDesiatov merged commit ef287b5 into main Jan 2, 2024
@MaxDesiatov MaxDesiatov deleted the maxd/embedded-wasm branch January 2, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working embedded Changes related to Embedded Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants