Skip to content

Commit 2378095

Browse files
authored
Merge pull request #270 from denzp/master
Don't build compiler-rt for NVPTX
2 parents 9710af9 + 827f9a8 commit 2378095

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)