File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ fn main() {
22
22
23
23
// Forcibly enable memory intrinsics on wasm32 & SGX as we don't have a libc to
24
24
// provide them.
25
- if target. contains ( "wasm32" ) || ( target. contains ( "sgx" ) && target. contains ( "fortanix" ) ) {
25
+ if ( target. contains ( "wasm32" ) && !target. contains ( "wasi" ) ) ||
26
+ ( target. contains ( "sgx" ) && target. contains ( "fortanix" ) ) {
26
27
println ! ( "cargo:rustc-cfg=feature=\" mem\" " ) ;
27
28
}
28
29
@@ -314,7 +315,7 @@ mod c {
314
315
if target_os == "freebsd" {
315
316
sources. extend ( & [ "clear_cache.c" ] ) ;
316
317
}
317
-
318
+
318
319
// First of all aeabi_cdcmp and aeabi_cfcmp are never called by LLVM.
319
320
// Second are little-endian only, so build fail on big-endian targets.
320
321
// Temporally workaround: exclude these files for big-endian targets.
You can’t perform that action at this time.
0 commit comments