You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2021/02/04 18:45:40 UTC

[incubator-teaclave] 01/07: Support x86_64-apple-ios target

This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git

commit 2d8d493da7218bab1e78f2b895e83f2b45756bc0
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Tue Feb 2 17:39:49 2021 -0800

    Support x86_64-apple-ios target
---
 common/protected_fs_rs/build.rs                | 2 +-
 common/protected_fs_rs/protected_fs_c/build.sh | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/protected_fs_rs/build.rs b/common/protected_fs_rs/build.rs
index 0520c8a..93fe3e1 100644
--- a/common/protected_fs_rs/build.rs
+++ b/common/protected_fs_rs/build.rs
@@ -32,7 +32,7 @@ fn build_non_sgx_protected_fs_c_with_cmake() {
     };
 
     let script = PathBuf::from("protected_fs_c").join("build.sh");
-    let target_dir = if target == "aarch64-apple-ios" {
+    let target_dir = if target == "aarch64-apple-ios" || target == "x86_64-apple-ios" {
         build_dir.join("target").join(build_type)
     } else {
         build_dir.join("target")
diff --git a/common/protected_fs_rs/protected_fs_c/build.sh b/common/protected_fs_rs/protected_fs_c/build.sh
index ffb0a68..0007be3 100644
--- a/common/protected_fs_rs/protected_fs_c/build.sh
+++ b/common/protected_fs_rs/protected_fs_c/build.sh
@@ -29,6 +29,7 @@ while true; do
     -t | --target ) 
         case "$2" in 
             aarch64-apple-ios) TARGET_FLAGS="-G Xcode -DCMAKE_TOOLCHAIN_FILE=${SOURCE_DIR}/ios.toolchain.cmake -DPLATFORM=OS64";;
+            x86_64-apple-ios) TARGET_FLAGS="-G Xcode -DCMAKE_TOOLCHAIN_FILE=${SOURCE_DIR}/ios.toolchain.cmake -DPLATFORM=SIMULATOR64";;
             *) TARGET_FLAGS="";;
         esac
         shift; shift ;;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org