]> git.lizzy.rs Git - rust.git/commit
Export wasm source map when debug information is enabled
authorYury Delendik <ydelendik@mozilla.com>
Tue, 30 Jan 2018 02:13:29 +0000 (20:13 -0600)
committerYury Delendik <ydelendik@mozilla.com>
Wed, 31 Jan 2018 02:10:58 +0000 (20:10 -0600)
commitcfe53c066646857a19046ebaf0cdc410c3d9f034
treec2a4b883ac1861e17a244fe155e6501f9bab6f60
parenta0dcecff90c45ad5d4eb60859e22bb3f1b03842a
Export wasm source map when debug information is enabled

We use binaryen's linker to produce a wasm file (via s2wasm). The wasm writer has capabilities to export source maps.

The produced source map contains references to the original file, that might require additional source map file processing to include / package original files with it.
src/librustc_binaryen/BinaryenWrapper.cpp
src/librustc_binaryen/lib.rs
src/librustc_trans/back/write.rs