summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-16 10:59:10 +0800
committerruki <[email protected]>2020-05-16 10:59:10 +0800
commitd021df166bfd45c2d18ae6fa39cd685006491d01 (patch)
tree00ae776fe15fc6f70c30877b1b2eaeba2cd3d4f8 /xmake/core/tool/linker.lua
parent87a0828f8d20d3a1a83aed640e6e77560668e488 (diff)
rename dlang, rust, swift, go ldflags
Diffstat (limited to 'xmake/core/tool/linker.lua')
-rw-r--r--xmake/core/tool/linker.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua
index ed1f47daa..d5a410b31 100644
--- a/xmake/core/tool/linker.lua
+++ b/xmake/core/tool/linker.lua
@@ -39,7 +39,7 @@ local compiler = require("tool/compiler")
-- add flags from the platform
function linker:_add_flags_from_platform(flags, targetkind)
- -- attempt to add special lanugage flags first for target kind, e.g. binary.go.gc-ldflags, static.dc-arflags
+ -- attempt to add special lanugage flags first for target kind, e.g. binary.go.gcldflags, static.dcarflags
if targetkind then
local toolkind = self:kind()
local toolname = self:name()
@@ -57,7 +57,7 @@ function linker:_add_flags_from_linker(flags)
local toolkind = self:kind()
for _, flagkind in ipairs(self:_flagkinds()) do
- -- attempt to add special lanugage flags first, e.g. gc-ldflags, dc-arflags
+ -- attempt to add special lanugage flags first, e.g. gcldflags, dcarflags
table.join2(flags, self:get(toolkind .. 'flags') or self:get(flagkind))
end
end
@@ -185,7 +185,7 @@ function linker.load(targetkind, sourcekinds, target)
local toolname = linkertool:name()
for _, flagkind in ipairs(instance:_flagkinds()) do
- -- add special lanugage flags first, e.g. go.gc-ldflags or gcc.ldflags or gc-ldflags or ldflags
+ -- add special lanugage flags first, e.g. go.gcldflags or gcc.ldflags or gcldflags or ldflags
linkertool:add(toolkind .. 'flags', platform.get(toolname .. '.' .. toolkind .. 'flags') or platform.get(toolkind .. 'flags'))
linkertool:add(flagkind, platform.get(toolname .. '.' .. flagkind) or platform.get(flagkind))
end