diff options
| author | ruki <[email protected]> | 2017-02-27 14:51:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-02-27 14:51:26 +0800 |
| commit | 65f49bd7b23dbbb2516b93518906f451cd35a7c0 (patch) | |
| tree | e489db5c253bf021b7d3a58c899a8d5bc793592e /xmake/core | |
| parent | 7d1939d7dcc6f18f5cef9a4d443e44cfa4bdefa5 (diff) | |
rename go tool kind to gc
Diffstat (limited to 'xmake/core')
| -rw-r--r-- | xmake/core/tool/builder.lua | 2 | ||||
| -rw-r--r-- | xmake/core/tool/linker.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua index 9fdb76ce1..de562593b 100644 --- a/xmake/core/tool/builder.lua +++ b/xmake/core/tool/builder.lua @@ -158,7 +158,7 @@ function builder:_addflags_from_platform(flags) -- add flags local toolkind = self:get("kind") for _, flagkind in ipairs(self:_flagkinds()) do - -- attempt to add special lanugage flags first, .e.g go-ldflags, dc-arflags + -- attempt to add special lanugage flags first, .e.g gc-ldflags, dc-arflags table.join2(flags, platform.get(toolkind .. 'flags') or platform.get(flagkind)) end end diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua index 04daaf6b1..96f54b863 100644 --- a/xmake/core/tool/linker.lua +++ b/xmake/core/tool/linker.lua @@ -52,7 +52,7 @@ function linker:_addflags_from_compiler(flags, sourcekinds) local instance, errors = compiler.load(sourcekind) if instance then for _, flagkind in ipairs(self:_flagkinds()) do - -- attempt to add special lanugage flags first, .e.g go-ldflags, dc-arflags + -- attempt to add special lanugage flags first, .e.g gc-ldflags, dc-arflags table.join2(flags_of_compiler, instance:get(toolkind .. 'flags') or instance:get(flagkind)) end end @@ -69,7 +69,7 @@ function linker:_addflags_from_linker(flags) local toolkind = self:get("kind") for _, flagkind in ipairs(self:_flagkinds()) do - -- attempt to add special lanugage flags first, .e.g go-ldflags, dc-arflags + -- attempt to add special lanugage flags first, .e.g gc-ldflags, dc-arflags table.join2(flags, self:get(toolkind .. 'flags') or self:get(flagkind)) end end |
