summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/target/action/install/cmake_importfiles.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/target/action/install/cmake_importfiles.lua b/xmake/modules/target/action/install/cmake_importfiles.lua
index 6293cfb39..ddbac2041 100644
--- a/xmake/modules/target/action/install/cmake_importfiles.lua
+++ b/xmake/modules/target/action/install/cmake_importfiles.lua
@@ -40,7 +40,7 @@ end
function _get_builtinvars(target, installdir)
local target_ptrbytes
if target:is_plat("wasm") then
- target_ptrbytes = target:is_arch("armeabi", "armeabi-v7a", "x86", "mips", "i386", "armv7", "armv7s", "mipsel", "wasm32") and "4" or "8"
+ target_ptrbytes = target:is_arch64() and "8" or "4"
else
target_ptrbytes = target:check_sizeof("void*")
end