From ddcda7d74feb2837db32782ed4cc6f0a706f976b Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Thu, 23 Oct 2025 23:41:20 +0200 Subject: fix(swift) fix has_flags for swiftc and swift-frontend --- xmake/modules/core/tools/swiftc/has_flags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/swiftc/has_flags.lua b/xmake/modules/core/tools/swiftc/has_flags.lua index 943277110..0f65e0604 100644 --- a/xmake/modules/core/tools/swiftc/has_flags.lua +++ b/xmake/modules/core/tools/swiftc/has_flags.lua @@ -73,7 +73,7 @@ function _check_try_running(flags, opt) -- check it local objectfile = os.tmpfile() .. ".o" local ok, errors = _try_running(opt.program, table.join(flags, "-o", objectfile, sourcefile)) - if errors and errors:match("no frontend action") then + if errors and not errors:match("unknown argument") then ok = true errors = nil end -- cgit v1.3.1