summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2025-10-05 00:20:15 +0300
committerGitHub <[email protected]>2025-10-05 00:20:15 +0300
commit488d0f469d5119d0c973bd45c7184b613747f574 (patch)
tree2eb1bc5cf032bd53b6c0e125fe6ec446b4e0824f
parent4b643c4fa3792c834fe08d2e99104ea655b61584 (diff)
Update cmake_importfiles.lua
-rw-r--r--xmake/modules/target/action/install/cmake_importfiles.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/target/action/install/cmake_importfiles.lua b/xmake/modules/target/action/install/cmake_importfiles.lua
index e857cdadd..474a67775 100644
--- a/xmake/modules/target/action/install/cmake_importfiles.lua
+++ b/xmake/modules/target/action/install/cmake_importfiles.lua
@@ -41,8 +41,10 @@ function _get_builtinvars(target, installdir)
local target_ptrbytes
if target:is_plat("wasm") then
target_ptrbytes = is_arch("wasm32") and "4" or "8"
- else
+ elseif target:is_plat("cross") then
target_ptrbytes = target:check_sizeof("void*")
+ else
+ target_ptrbytes = target:is_arch64() and "8" or "4"
end
return {TARGETNAME = target:name(),
PROJECTNAME = project.name() or target:name(),