summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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