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 npm publishing breakage due to wasm-opt segfault #111

Merged
merged 4 commits into from
May 19, 2021

Conversation

cormacrelf
Copy link
Collaborator

Fixes #110

Uses a forked wasm-pack that doesn't use a pinned old wasm-opt version. This was necessary because wasm-opt actually just started segfaulting. I didn't find out what version wasm-pack has it pinned at (from sometime in 2019? 2020?), but downloading wasm-opt from binaryen's GitHub Releases version_101 works.

Also switches back to -O3 because it's a lot faster to run wasm-opt and the binary is not much bigger.

O3 is faster; O4 does not produce significantly smaller binaries.

However, this does not solve the problem of wasm-opt segfaulting on CI.
This disables incremental compilation: see https://blog.rust-lang.org/2021/05/10/Rust-1.52.1.html

(i.e. incremental within a crate (= within a compilation unit))
@cormacrelf cormacrelf merged commit 73165a0 into master May 19, 2021
@cormacrelf cormacrelf deleted the wasm-pack-vendored branch May 20, 2021 04:13
@cormacrelf cormacrelf added A-ci Area: continuous integration A-wasm Area: wasm package on npm I-packaging Issue: problem with a built package labels Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: continuous integration A-wasm Area: wasm package on npm I-packaging Issue: problem with a built package
Development

Successfully merging this pull request may close these issues.

npmjs.com repo is not updating
1 participant