diff options
| author | Arthur LAURENT <[email protected]> | 2023-06-12 14:13:18 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2023-06-12 14:13:18 +0200 |
| commit | 0b83eee8f989b19e2431413a3242046702aa8367 (patch) | |
| tree | f06ced96fbcdc1f1c6e76d318e92984bcc6fcdcf /xmake/modules | |
| parent | 2018f5b4c66b89a72c02fd771433a1ce07090dea (diff) | |
fix cross file cpu / system / endianess generation when using a custom plat and allow aarch54 arch as a equivalent to arm64
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/package/tools/meson.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua index f1a1c405e..c8029b4dc 100644 --- a/xmake/modules/package/tools/meson.lua +++ b/xmake/modules/package/tools/meson.lua @@ -251,9 +251,9 @@ function _get_cross_file(package, opt) file:print("cpu_family = 'wasm32'") file:print("cpu = 'wasm32'") file:print("endian = 'little'") - elseif package:is_plat("cross") and package:targetos() then + else local cpu = package:arch() - if package:is_arch("arm64") then + if package:is_arch("arm64") or package:is_arch("aarch64") then cpu = "aarch64" elseif package:is_arch("arm.*") then cpu = "arm" |
