]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #59320 - alexcrichton:wasm-clang, r=sanxiyn
authorMazdak Farrokhzad <twingoow@gmail.com>
Thu, 28 Mar 2019 12:35:36 +0000 (13:35 +0100)
committerGitHub <noreply@github.com>
Thu, 28 Mar 2019 12:35:36 +0000 (13:35 +0100)
rustc: Allow using `clang` for wasm32 targets

This commit adds support code for using `clang` directly to link the
wasm32-unknown-unknown target. Currently the target is only really
configured to link with LLD directly, but this ensures that `clang` can
be configured as well.

While not immediately useful in the near term it's likely that more
wasm32 targets will pop up over time with Clang's new native support for
WebAssembly in the 8.0.0 release. Getting support into rustc early
should make it easier to experiment with these targets and try out
various changes here and there.

1  2 
src/librustc_codegen_ssa/back/linker.rs