summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-09-14 00:55:40 +0800
committerruki <[email protected]>2023-09-14 00:55:40 +0800
commit6d2a1dc8f7a33e07d0ab33d13b51a31d30ea4d41 (patch)
treec90817bfe9337a13f51484e9d55707c1992fa194
parentbb012744cf9f946cf4251f92024eebb4e6453457 (diff)
support catalyst for trybuild
-rw-r--r--xmake/modules/private/action/trybuild/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/trybuild/cmake.lua b/xmake/modules/private/action/trybuild/cmake.lua
index 66e407ec3..4e9729108 100644
--- a/xmake/modules/private/action/trybuild/cmake.lua
+++ b/xmake/modules/private/action/trybuild/cmake.lua
@@ -382,7 +382,7 @@ function _get_configs(opt)
_get_configs_for_android(configs)
elseif is_plat("iphoneos", "watchos") or
-- for cross-compilation on macOS, @see https://github.com/xmake-io/xmake/issues/2804
- (is_plat("macosx") and not is_arch(os.subarch())) then
+ (is_plat("macosx") and (get_config("appledev") or not is_arch(os.subarch()))) then
_get_configs_for_appleos(configs)
elseif is_plat("mingw") then
_get_configs_for_mingw(configs)