From b1151620cca00ebf4f011ae5e3656359cba80f0c Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 11 Feb 2026 00:47:03 +0800 Subject: improve xcode toolchain --- xmake/toolchains/xcode/check.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xmake/toolchains/xcode/check.lua') diff --git a/xmake/toolchains/xcode/check.lua b/xmake/toolchains/xcode/check.lua index 5797170f5..b73ea426a 100644 --- a/xmake/toolchains/xcode/check.lua +++ b/xmake/toolchains/xcode/check.lua @@ -22,6 +22,7 @@ import("core.base.option") import("core.project.config") import("detect.sdks.find_xcode") +import("private.utils.toolchain", {alias = "toolchain_utils"}) import("private.utils.executable_path") import("private.tools.codesign") @@ -32,8 +33,9 @@ function _show_checkinfo(toolchain, xcode, xcode_sdkver, target_minver) if xcode_sdkver then table.insert(extras, "sdk: " .. xcode_sdkver) end - if target_minver then - table.insert(extras, "target: " .. target_minver) + local target_triple = toolchain_utils.get_xcode_target_triple(toolchain) + if target_triple then + table.insert(extras, target_triple) end local extra = "" if #extras > 0 then -- cgit v1.3.1