Merge pull request #270 from denzp/master

Don't build compiler-rt for NVPTX
This commit is contained in:
Alex Crichton 2019-01-07 11:11:19 -06:00 committed by GitHub
commit 2378095345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,8 @@ fn main() {
// build anything and we rely on the upstream implementation of compiler-rt
// functions
if !cfg!(feature = "mangled-names") && cfg!(feature = "c") {
// no C compiler for wasm
if !target.contains("wasm32") {
// Don't use C compiler for bitcode-only wasm and nvptx
if !target.contains("wasm32") && !target.contains("nvptx") {
#[cfg(feature = "c")]
c::compile(&llvm_target);
println!("cargo:rustc-cfg=use_c");