From deb1cb51d13642a1c6390f2b593ddba74c88dd38 Mon Sep 17 00:00:00 2001 From: Denys Zariaiev Date: Sun, 6 Jan 2019 16:28:46 +0100 Subject: [PATCH] Don't build compiler-rt for NVPTX --- library/compiler-builtins/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/compiler-builtins/build.rs b/library/compiler-builtins/build.rs index 752bba1343f6..b094734539e3 100644 --- a/library/compiler-builtins/build.rs +++ b/library/compiler-builtins/build.rs @@ -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");