Handle target specific outputs such as .wasm
authorTatsuya Kawano <tatsuya@hibaridb.org>
Thu, 5 Oct 2017 01:37:04 +0000 (09:37 +0800)
committerTatsuya Kawano <tatsuya@hibaridb.org>
Thu, 5 Oct 2017 01:37:04 +0000 (09:37 +0800)
commitf9a541b5f93e66bc5e02c67ecd585d87fb1185cb
tree05144c4936fc67fef978ed7eb656b2324dda58d9
parent84b3989b2c1c2d1ae642de0ae14324f6adf91485
Handle target specific outputs such as .wasm

Fixes #4535

- Do not add metadata to wasm32 bin target because generated .js will
  refer corresponding .wasm.
- Handle different usages of "-" and "_" in .js and .wasm file names.
  (e.g "foo-bar.js" vs. "foo_bar.wasm")
- Change file mode of cargo_rustc/context.rs (100755 -> 100644)
src/cargo/ops/cargo_rustc/context.rs [changed mode: 0755->0644]
tests/build.rs