Skip to content

wasm-opt invocation fails on Rust 1.87 #1501

@printfn

Description

@printfn

🐛 Bug description

I'm getting wasm-opt errors in Rust 1.87.
Here's a minimal reproduction: https://github.com/printfn/repro/tree/rust-wasm-bulk-memory

I believe this issue is caused by the LLVM 20 upgrade in rustc.
I've found that adding additional wasm-opt flags --enable-nontrapping-float-to-int and --enable-bulk-memory seems to fix the issue. Perhaps these just need to be enabled by default?

🤔 Expected Behavior

It should have built.

👟 Steps to reproduce

  1. Clone the repo
  2. wasm-pack build

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.13.1
rustc version: 1.87.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions