]> git.lizzy.rs Git - rust.git/commit
Compile WASM as WASM instead of asm.js
authorChristopher Serr <cryze92@gmail.com>
Fri, 14 Apr 2017 17:17:03 +0000 (19:17 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2017 17:17:03 +0000 (19:17 +0200)
commitec27aa97b921957711b96e578c7c197ff28553ac
tree5c602e834ca53e46e058c1978125da5024a0955e
parent5637ed756632ded9e458b82a23cc1dddbb57c51f
Compile WASM as WASM instead of asm.js

Looks like the LinkerFlavor change introduced in #40018 accidentally uses GCC for the WebAssembly target, causing Rust to never actually pass the post link args to emscripten. This then causes the code to be compiled as asm.js instead of WebAssembly, because the Binaryen tools never run due to the missing linker argument.
src/librustc_back/target/wasm32_unknown_emscripten.rs