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

binaryen.js: Remove closure flags that set the ES version #6157

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

kripken
Copy link
Member

@kripken kripken commented Dec 8, 2023

Emscripten sets that itself these days.

@kripken kripken requested a review from sbc100 December 8, 2023 18:07
@@ -468,7 +468,6 @@ if(EMSCRIPTEN)
target_link_libraries(binaryen_wasm "-msign-ext")
Copy link
Member

Choose a reason for hiding this comment

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

I think sign-ext is the default these days so you can probably remove this line too

@kripken
Copy link
Member Author

kripken commented Dec 8, 2023

Hmm, this still errors, so that wasn't it. Any other theories @sbc100 ?

edit: I'm investigating locally

@sbc100
Copy link
Member

sbc100 commented Dec 8, 2023

I see the correct flags in there --language_in ECMASCRIPT_2021 --language_out NO_TRANSPILE .. but then someone is injecting these incorrect flags later language_in=ECMASCRIPT6 --language_out=ECMASCRIPT6

@kripken
Copy link
Member Author

kripken commented Dec 8, 2023

I bisected the regression to "Leverage coalescing operators. NFC emscripten-core/emscripten#20531"

@kripken
Copy link
Member Author

kripken commented Dec 8, 2023

I also may have found the problem here, those flags were in a second place. edit: Locally that last commit fixes it.

@kripken kripken enabled auto-merge (squash) December 8, 2023 18:52
@kripken kripken merged commit 7dec416 into WebAssembly:main Dec 8, 2023
14 checks passed
@kripken kripken deleted the no-closure-es6-flag branch December 8, 2023 19:16
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
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