summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules')
-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"