浏览代码

Don't build compiler-rt for NVPTX

Denys Zariaiev 6 年之前
父节点
当前提交
827f9a8a01
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      build.rs

+ 2 - 2
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");