summaryrefslogtreecommitdiff
path: root/xmake/core
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
parent87a0828f8d20d3a1a83aed640e6e77560668e488 (diff)
rename dlang, rust, swift, go ldflags
Diffstat (limited to 'xmake/core')
-rw-r--r--xmake/core/language/language.lua6
-rw-r--r--xmake/core/tool/linker.lua6
-rw-r--r--xmake/core/tool/toolchain.lua2
3 files changed, 8 insertions, 6 deletions
diff --git a/xmake/core/language/language.lua b/xmake/core/language/language.lua
index cd42d8ae2..eedb2c9a2 100644
--- a/xmake/core/language/language.lua
+++ b/xmake/core/language/language.lua
@@ -646,9 +646,9 @@ end
-- e.g.
--
-- {
--- binary = {"ld", "gc-ld", "dc-ld"}
--- , static = {"ar", "gc-ar", "dc-ar"}
--- , shared = {"sh", "dc-sh"}
+-- binary = {"ld", "gcld", "dcld"}
+-- , static = {"ar", "gcar", "dcar"}
+-- , shared = {"sh", "dcsh"}
-- }
--
function language.targetkinds()
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
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index ef04e31bf..6cfaf5802 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -27,7 +27,9 @@ local os = require("base/os")
local path = require("base/path")
local utils = require("base/utils")
local table = require("base/table")
+local global = require("base/global")
local interpreter = require("base/interpreter")
+local config = require("project/config")
local language = require("language/language")
local sandbox = require("sandbox/sandbox")