summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cosmocc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-06 22:44:21 +0800
committerruki <[email protected]>2024-02-06 22:44:21 +0800
commit78a1a52f425010571eda84ab1cefeb11d78c20c8 (patch)
treed6e1a9e42a68a2e8674b96abd015800c572a5276 /xmake/modules/core/tools/cosmocc.lua
parent469f941f5680273b5b734996677b055a776f0056 (diff)
add cosmoar support
Diffstat (limited to 'xmake/modules/core/tools/cosmocc.lua')
-rw-r--r--xmake/modules/core/tools/cosmocc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cosmocc.lua b/xmake/modules/core/tools/cosmocc.lua
index 60f25a3f0..c53f6e1c5 100644
--- a/xmake/modules/core/tools/cosmocc.lua
+++ b/xmake/modules/core/tools/cosmocc.lua
@@ -32,6 +32,7 @@ end
-- link the target file
function link(self, objectfiles, targetkind, targetfile, flags, opt)
+ opt = opt or {}
if is_host("windows") then
targetfile = targetfile:gsub("\\", "/")
local objectfiles_new = {}