diff options
| author | ruki <[email protected]> | 2017-09-30 10:34:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-30 10:34:42 +0800 |
| commit | b77dcc4cea91854766a718b5d03d49a25de6a180 (patch) | |
| tree | 77fb384d36e12eb4ad5a81e9851e67e11e82ed18 /xmake/core/tool/linker.lua | |
| parent | c1881132bf73e9914a244896506e9bc3954de301 (diff) | |
inherit some configs
Diffstat (limited to 'xmake/core/tool/linker.lua')
| -rw-r--r-- | xmake/core/tool/linker.lua | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua index 1ce6d80e4..496efc2c7 100644 --- a/xmake/core/tool/linker.lua +++ b/xmake/core/tool/linker.lua @@ -237,24 +237,8 @@ function linker:linkflags(opt) -- add flags from the linker self:_addflags_from_linker(flags) - -- remove repeat - flags = table.unique(flags) - - -- split flag group, .e.g "-I /xxx" => {"-I", "/xxx"} - local results = {} - for _, flag in ipairs(flags) do - flag = flag:trim() - if #flag > 0 then - if flag:find(" ", 1, true) then - table.join2(results, os.argv(flag)) - else - table.insert(results, flag) - end - end - end - - -- get it - return results + -- preprocess flags + return self:_preprocess_flags(flags) end -- return module |
