We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9710af9 + 827f9a8 commit 2378095Copy full SHA for 2378095
build.rs
@@ -36,8 +36,8 @@ fn main() {
36
// build anything and we rely on the upstream implementation of compiler-rt
37
// functions
38
if !cfg!(feature = "mangled-names") && cfg!(feature = "c") {
39
- // no C compiler for wasm
40
- if !target.contains("wasm32") {
+ // Don't use C compiler for bitcode-only wasm and nvptx
+ if !target.contains("wasm32") && !target.contains("nvptx") {
41
#[cfg(feature = "c")]
42
c::compile(&llvm_target);
43
println!("cargo:rustc-cfg=use_c");
0 commit comments