summaryrefslogtreecommitdiff
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
parent410a36dad68dc1f0b2ac9c12d861af7ab8d0b1d6 (diff)
remove unique for flags
-rw-r--r--xmake/core/tool/compiler.lua3
-rw-r--r--xmake/core/tool/linker.lua5
2 files changed, 1 insertions, 7 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index d98ae5212..e6104608f 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -244,9 +244,6 @@ function compiler:compflags(opt)
-- add flags from the compiler
self:_addflags_from_compiler(flags, targetkind)
- -- remove repeat
- flags = table.unique(flags)
-
-- make flags string
local flags_str = table.concat(flags, " "):trim():gsub("\"", "\\\"")
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("\"", "\\\"")