diff options
| author | ruki <[email protected]> | 2025-11-19 23:43:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-09 22:11:50 +0800 |
| commit | 4d7ff03f1f95b4edb3e1406fab6290ff1068170f (patch) | |
| tree | e507fa45cf7ae0906b90732ee67e4380c24d8f65 /tests/projects/other/multiplats_xcode/test.lua | |
| parent | cd05cd1a20d5b77955b4c8410caf88030e398e91 (diff) | |
fix tests
Diffstat (limited to 'tests/projects/other/multiplats_xcode/test.lua')
| -rw-r--r-- | tests/projects/other/multiplats_xcode/test.lua | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/projects/other/multiplats_xcode/test.lua b/tests/projects/other/multiplats_xcode/test.lua index 196797077..5d27584e3 100644 --- a/tests/projects/other/multiplats_xcode/test.lua +++ b/tests/projects/other/multiplats_xcode/test.lua @@ -3,6 +3,22 @@ function main(t) os.exec("xmake f -c -vD") os.exec("xmake -rvD") os.exec("xmake f -c -vD -p iphoneos") - os.exec("xmake -rvD") + -- build only arm64 target first, avoid building armv7 if SDK doesn't support it + os.exec("xmake -rvD test_iphoneos") + -- try to build armv7 target, skip if SDK doesn't support it + try + { + function () + os.exec("xmake f -c -vD -p iphoneos -a armv7") + os.exec("xmake -rvD test_iphoneos_armv7") + end, + catch + { + function (errors) + -- SDK doesn't support armv7, skip this target + cprint("${color.warning}skip test_iphoneos_armv7: SDK doesn't support armv7") + end + } + } end end |
