diff options
| author | ruki <[email protected]> | 2018-11-13 22:48:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-13 10:51:40 +0800 |
| commit | 7d234801498d6e272d780407695ebff89a64d675 (patch) | |
| tree | 28313737e1c44c3d639fbf49ab05ed0bc68ec1d4 /xmake/core/tool/compiler.lua | |
| parent | bcfe7b269dc8ccca180099c8ce62f333a405ed11 (diff) | |
improve compiler tools
Diffstat (limited to 'xmake/core/tool/compiler.lua')
| -rw-r--r-- | xmake/core/tool/compiler.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua index 99f965a0a..9c622ba33 100644 --- a/xmake/core/tool/compiler.lua +++ b/xmake/core/tool/compiler.lua @@ -65,16 +65,14 @@ end -- add flags from the compiler function compiler:_addflags_from_compiler(flags, targetkind) - - -- done for _, flagkind in ipairs(self:_flagkinds()) do - -- add compiler.xxflags + -- add compiler, e.g. cxflags table.join2(flags, self:get(flagkind)) - -- add compiler.targetkind.xxflags - if targetkind ~= nil and self:get(targetkind) ~= nil then - table.join2(flags, self:get(targetkind)[flagkind]) + -- add compiler, e.g. targetkind.cxflags + if targetkind then + table.join2(flags, self:get(targetkind .. '.' .. flagkind)) end end end |
