diff options
| author | Arthur LAURENT <[email protected]> | 2025-10-23 22:09:29 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-10-23 22:09:29 +0200 |
| commit | 3a9b7a4db2c851415be0282a36e60deecd7f53f1 (patch) | |
| tree | 93d4ac8986b464eb686c4a03696ebdbceb55f8e3 /xmake/modules | |
| parent | 16dc28b62144cdcc42cb7597e39d2d9499ac7f49 (diff) | |
feat(swift) enable swift library to be linked by other targets
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/swiftc/has_flags.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/swiftc/has_flags.lua b/xmake/modules/core/tools/swiftc/has_flags.lua index 290a6de83..943277110 100644 --- a/xmake/modules/core/tools/swiftc/has_flags.lua +++ b/xmake/modules/core/tools/swiftc/has_flags.lua @@ -73,6 +73,10 @@ 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 + ok = true + errors = nil + end -- remove files os.tryrm(objectfile) |
