We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fafaace commit c8b8087Copy full SHA for c8b8087
build.rs
@@ -22,7 +22,8 @@ fn main() {
22
23
// Forcibly enable memory intrinsics on wasm32 & SGX as we don't have a libc to
24
// provide them.
25
- if target.contains("wasm32") || (target.contains("sgx") && target.contains("fortanix")) {
+ if (target.contains("wasm32") && !target.contains("wasi")) ||
26
+ (target.contains("sgx") && target.contains("fortanix")) {
27
println!("cargo:rustc-cfg=feature=\"mem\"");
28
}
29
@@ -314,7 +315,7 @@ mod c {
314
315
if target_os == "freebsd" {
316
sources.extend(&["clear_cache.c"]);
317
-
318
+
319
// First of all aeabi_cdcmp and aeabi_cfcmp are never called by LLVM.
320
// Second are little-endian only, so build fail on big-endian targets.
321
// Temporally workaround: exclude these files for big-endian targets.
0 commit comments