diff options
| author | ruki <[email protected]> | 2025-10-02 10:36:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-02 10:36:52 +0800 |
| commit | 553eceaccbddb35e8499b3a4332a5b798219f796 (patch) | |
| tree | 1b37cfe5b22245810000586a26b4497f93623e60 | |
| parent | 291bfbea0f79aa76468285e0a4cb40475fc80133 (diff) | |
| parent | cf83546b9bc1dcbc243f39d76a0c8b5bf4f8f62e (diff) | |
Merge pull request #6880 from luadebug/fix-sizeof-cross
Update cmake_importfiles.lua
| -rw-r--r-- | xmake/modules/target/action/install/cmake_importfiles.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/target/action/install/cmake_importfiles.lua b/xmake/modules/target/action/install/cmake_importfiles.lua index cf1be782a..6b3d97546 100644 --- a/xmake/modules/target/action/install/cmake_importfiles.lua +++ b/xmake/modules/target/action/install/cmake_importfiles.lua @@ -43,7 +43,7 @@ function _get_builtinvars(target, installdir) TARGETFILENAME = target:targetfile() and _get_libfile(target, installdir), TARGETKIND = target:is_headeronly() and "INTERFACE" or (target:is_shared() and "SHARED" or "STATIC"), PACKAGE_VERSION = target:get("version") or "1.0.0", - TARGET_PTRBYTES = target:is_arch("armeabi", "armeabi-v7a", "x86", "mips", "i386", "armv7", "armv7s", "mipsel", "wasm32") and "4" or "8"} + TARGET_PTRBYTES = target:check_sizeof("void*")} end -- install cmake config file |
