summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/swift/xmake.lua3
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)