Don't build compiler-rt for NVPTX

This commit is contained in:
Denys Zariaiev 2019-01-06 16:28:46 +01:00
parent 10f4f35f96
commit 827f9a8a01
1 changed files with 2 additions and 2 deletions

View File

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