Can not disable reference-types
feature for wasm32 target with -C linker-plugin-lto
flag
#130604
Labels
C-bug
Category: This is a bug.
O-wasm
Target: WASM (WebAssembly), http://webassembly.org/
P-medium
Medium priority
regression-untriaged
Untriaged performance or correctness regression.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
@alexcrichton
Code is minimized as much as possible and here is a demo repository: https://github.com/StackOverflowExcept1on/wasm-builder-regression/
wasm-checker
- simple CLI tool that passes wasm to parity-wasm parser (it does not support reference-types)wasm-program
- this is smart contract that panics and terminates with an errorwasm-project
- some intermediate directory that is generated by our utilitygit clone https://github.com/StackOverflowExcept1on/wasm-builder-regression.git cd wasm-builder-regression/wasm-project ./check.sh
If I remove flag
-C linker-plugin-lto
, it works as described in #128511I expected to see this happen: I can disable
reference-types
via-Ctarget-cpu=mvp
and-Zbuild-std
Instead, this happened: there is some kind of conflict between compiler flags?
Version it worked on
It most recently worked on:
nightly-2024-07-31
Version with regression
rustc +nightly-2024-08-01 --version --verbose
:The text was updated successfully, but these errors were encountered: