Don't build compiler-rt for NVPTX
This commit is contained in:
parent
b29ccbb6e9
commit
deb1cb51d1
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue