From 6d2a1dc8f7a33e07d0ab33d13b51a31d30ea4d41 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Sep 2023 00:55:40 +0800 Subject: support catalyst for trybuild --- xmake/modules/private/action/trybuild/cmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.3.1