summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2025-10-05 05:05:33 +0300
committerGitHub <[email protected]>2025-10-05 05:05:33 +0300
commitb5981bc08e2040200efa07ae4dbe1c733af64f76 (patch)
treef92264a0434ffb539b31932158a34f5188be79aa
parentc003d1e4ceafeae8e6e5c91262dc943714e28a3f (diff)
Update cmake_importfiles.lua
-rw-r--r--xmake/modules/target/action/install/cmake_importfiles.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/modules/target/action/install/cmake_importfiles.lua b/xmake/modules/target/action/install/cmake_importfiles.lua
index 2e7480a43..b37729547 100644
--- a/xmake/modules/target/action/install/cmake_importfiles.lua
+++ b/xmake/modules/target/action/install/cmake_importfiles.lua
@@ -39,9 +39,7 @@ end
-- get the builtin variables
function _get_builtinvars(target, installdir)
local target_ptrbytes
- if target:is_plat("wasm") then
- target_ptrbytes = target:is_arch("wasm32") and "4" or "8"
- elseif target:is_plat("cross") then
+ if target:is_plat("cross") then
target_ptrbytes = target:check_sizeof("void*")
else
target_ptrbytes = target:is_arch64() and "8" or "4"