summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nim.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-24 22:53:05 +0800
committerruki <[email protected]>2023-10-24 22:53:05 +0800
commit66b43560f7cf25b20ecb78a85dc17fe1f975bb48 (patch)
tree52e461ab60c8c76d6b5a8ae8a379121991573df9 /xmake/modules/core/tools/nim.lua
parent645d407a01aa69d35d5340c66f5e109583e4c427 (diff)
pass extras to tools
Diffstat (limited to 'xmake/modules/core/tools/nim.lua')
-rw-r--r--xmake/modules/core/tools/nim.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/nim.lua b/xmake/modules/core/tools/nim.lua
index 13d8fb3d6..b765f01f6 100644
--- a/xmake/modules/core/tools/nim.lua
+++ b/xmake/modules/core/tools/nim.lua
@@ -89,7 +89,7 @@ function nf_symbol(self, level)
end
-- make the strip flag
-function nf_strip(self, level, target)
+function nf_strip(self, level)
if self:is_plat("linux", "macosx", "bsd") then
if level == "debug" or level == "all" then
return "--passL:-s"
@@ -103,7 +103,7 @@ function nf_includedir(self, dir)
end
-- make the link flag
-function nf_link(self, lib, target)
+function nf_link(self, lib)
if self:is_plat("windows") then
return "--passL:" .. lib .. ".lib"
else
@@ -112,7 +112,7 @@ function nf_link(self, lib, target)
end
-- make the linkdir flag
-function nf_linkdir(self, dir, target)
+function nf_linkdir(self, dir)
if self:is_plat("windows") then
return {"--passL:-libpath:" .. path.translate(dir)}
else