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

Fix build when RUSTFLAGS is set for native builds #2365

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

alexcrichton
Copy link
Contributor

This fixes an issue where if RUSTFLAGS were set then the wasm cross-compiles performed would accidentally inherit the same flags. For me locally I was configuring a different native linker which didn't support wasm, so the wasm build failed due to the custom linker being used erroneously.

build.rs Outdated Show resolved Hide resolved
This fixes an issue where if `RUSTFLAGS` were set then the wasm
cross-compiles performed would accidentally inherit the same flags. For
me locally I was configuring a different native linker which didn't
support wasm, so the wasm build failed due to the custom linker being
used erroneously.

Signed-off-by: Alex Crichton <[email protected]>
@alexcrichton alexcrichton merged commit fd3d660 into fermyon:main Mar 15, 2024
15 checks passed
@alexcrichton alexcrichton deleted the fix-rustflags-for-native branch March 15, 2024 17:39
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