diff options
| author | Arthur LAURENT <[email protected]> | 2025-10-24 20:09:05 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-10-24 20:09:05 +0200 |
| commit | 005d1d56d9ca7a1126a27c380c617fb8ea6d0a55 (patch) | |
| tree | 70563003aeb140e0ec6106683073dfd786f98f35 | |
| parent | 5c1bb9431687dbcc3caeae94204475e23f98d148 (diff) | |
fix(swift) remove the generated header before regeneration
| -rw-r--r-- | xmake/rules/swift/xmake.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/swift/xmake.lua b/xmake/rules/swift/xmake.lua index 25ac86891..afb8983cb 100644 --- a/xmake/rules/swift/xmake.lua +++ b/xmake/rules/swift/xmake.lua @@ -165,6 +165,9 @@ rule("swift.interop", function() public_sourcefiles) if option.get("verbose") then print(os.args(table.join(sc, flags))) end + if os.isfile(header) then + os.rm(header) + end local outdata, errdata = os.iorunv(sc, flags) assert(outdata, errdata) end) |
