summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-10-23 23:41:20 +0200
committerArthur LAURENT <[email protected]>2025-10-23 23:41:20 +0200
commitddcda7d74feb2837db32782ed4cc6f0a706f976b (patch)
treef45afcb14538b27f9fc5cc26b2174a571571f828
parent05908f8cb3490b42deb90bdb9e92a797e3ad3e9d (diff)
fix(swift) fix has_flags for swiftc and swift-frontend
-rw-r--r--xmake/modules/core/tools/swiftc/has_flags.lua2
1 files changed, 1 insertions, 1 deletions
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