From b5981bc08e2040200efa07ae4dbe1c733af64f76 Mon Sep 17 00:00:00 2001 From: Saikari Date: Sun, 5 Oct 2025 05:05:33 +0300 Subject: Update cmake_importfiles.lua --- xmake/modules/target/action/install/cmake_importfiles.lua | 4 +--- 1 file changed, 1 insertion(+), 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" -- cgit v1.3.1