]> git.lizzy.rs Git - rust.git/commit
Turn off Vectorization for Emscripten
authorChristopher Serr <christopher.serr@gmail.com>
Mon, 20 Feb 2017 22:20:06 +0000 (23:20 +0100)
committerChristopher Serr <christopher.serr@gmail.com>
Mon, 20 Feb 2017 22:29:02 +0000 (23:29 +0100)
commit275e9bb51b61c685f39abb107d2eefb8b8e8515d
treecda036b7f8a916d9cae9643834b9e63c0662e979
parent5b7c5563855123ab094db99d42ccab5f26dbccdf
Turn off Vectorization for Emscripten

When targeting Emscripten, rustc emits Vector Instructions by default.
However Web Assembly doesn't support Vector Instructions yet, which
causes Binaryen to fail converting the intermediate asm.js code to Web
Assembly. While asm.js kind of supports Vector Instructions, they
aren't supported by any browser other than Firefox, often meaning that
they need to be emulated very slowly. So it should just be turned off
for all Emscripten targets.

Fixes #38558
src/librustc_trans/back/write.rs