From cf91dce08054727ea3e1eb0a31147fd82d774431 Mon Sep 17 00:00:00 2001 From: star9029 Date: Sat, 9 Nov 2024 14:09:01 +0800 Subject: [PATCH] fix iphoneos --- packages/m/microsoft-seal/xmake.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/m/microsoft-seal/xmake.lua b/packages/m/microsoft-seal/xmake.lua index 23854274c..b9960b1f9 100644 --- a/packages/m/microsoft-seal/xmake.lua +++ b/packages/m/microsoft-seal/xmake.lua @@ -79,7 +79,9 @@ package("microsoft-seal") table.insert(configs, "-DSEAL_BUILD_SEAL_C=" .. (package:config("c_api") and "ON" or "OFF")) table.insert(configs, "-DSEAL_USE_INTRIN=" .. (package:config("intrin") and "ON" or "OFF")) - if package:is_plat("mingw") then + if package:is_plat("iphoneos") then + table.insert(configs, "-DSEAL_USE_MEMSET_S=OFF") + elseif package:is_plat("mingw") then -- No aligned malloc implementation on MinGW -- https://github.com/ebassi/graphene/issues/83 table.insert(configs, "-DSEAL_USE_ALIGNED_ALLOC=OFF")