summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-11 21:22:42 +0800
committerruki <[email protected]>2017-07-11 21:22:42 +0800
commit7346528e00d1175b1ee4ce0c88234434a47a35ec (patch)
treeff28310742d348f63824a904846cfa9babe7e8a5 /xmake/core/tool/linker.lua
parent410a36dad68dc1f0b2ac9c12d861af7ab8d0b1d6 (diff)
remove unique for flags
Diffstat (limited to 'xmake/core/tool/linker.lua')
-rw-r--r--xmake/core/tool/linker.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua
index 9d055bbf0..c6144a7bb 100644
--- a/xmake/core/tool/linker.lua
+++ b/xmake/core/tool/linker.lua
@@ -82,7 +82,7 @@ function linker:_addflags_from_compiler(flags, targetkind)
end
-- add flags
- table.join2(flags, table.unique(flags_of_compiler))
+ table.join2(flags, flags_of_compiler)
end
-- add flags from the linker
@@ -251,9 +251,6 @@ function linker:linkflags(opt)
-- add flags from the linker
self:_addflags_from_linker(flags)
- -- remove repeat
- flags = table.unique(flags)
-
-- make flags string
local flags_str = table.concat(flags, " "):trim():gsub("\"", "\\\"")