diff options
| author | Saikari <[email protected]> | 2025-10-05 00:20:15 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-05 00:20:15 +0300 |
| commit | 488d0f469d5119d0c973bd45c7184b613747f574 (patch) | |
| tree | 2eb1bc5cf032bd53b6c0e125fe6ec446b4e0824f | |
| parent | 4b643c4fa3792c834fe08d2e99104ea655b61584 (diff) | |
Update cmake_importfiles.lua
| -rw-r--r-- | xmake/modules/target/action/install/cmake_importfiles.lua | 4 |
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(), |
