From 10df3f61ad291eee4a3c8e6e1129601acf18b011 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Thu, 10 Aug 2023 13:50:04 +0800 Subject: [PATCH] build: compile memory intrinsics on xous Like SGX, Xous does not have any libc to link against. As a result, memory intrinsics need to be available as part of `compiler_builtins` Signed-off-by: Sean Cross --- library/compiler-builtins/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/compiler-builtins/build.rs b/library/compiler-builtins/build.rs index 26db6b4be9a3..10c7aaa63e01 100644 --- a/library/compiler-builtins/build.rs +++ b/library/compiler-builtins/build.rs @@ -30,6 +30,7 @@ fn main() { || target.contains("-none") || target.contains("nvptx") || target.contains("uefi") + || target.contains("xous") { println!("cargo:rustc-cfg=feature=\"mem\""); }