Skip to content

Commit 827f9a8

Browse files
committed
Don't build compiler-rt for NVPTX
1 parent 10f4f35 commit 827f9a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ fn main() {
3636
// build anything and we rely on the upstream implementation of compiler-rt
3737
// functions
3838
if !cfg!(feature = "mangled-names") && cfg!(feature = "c") {
39-
// no C compiler for wasm
40-
if !target.contains("wasm32") {
39+
// Don't use C compiler for bitcode-only wasm and nvptx
40+
if !target.contains("wasm32") && !target.contains("nvptx") {
4141
#[cfg(feature = "c")]
4242
c::compile(&llvm_target);
4343
println!("cargo:rustc-cfg=use_c");

0 commit comments

Comments
 (0)