summaryrefslogtreecommitdiff
path: root/xmake/core/base
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-05 23:33:47 +0800
committerruki <[email protected]>2020-10-05 23:33:47 +0800
commit3c24b8c6ebecb87f7171b74ac2695e37f32a9612 (patch)
tree174f1345ecc6897ac095bb9c5f353424a5df3c27 /xmake/core/base
parent68640a3c5df67d21022e727b25938d607c958d9b (diff)
fix order of target:objectfiles()
Diffstat (limited to 'xmake/core/base')
-rw-r--r--xmake/core/base/table.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index 49d846e0c..27e6ecb3c 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -261,13 +261,8 @@ end
-- remove repeat from the given array
function table.unique(array, barrier)
- -- remove repeat for array
if table.is_array(array) then
-
- -- not only one?
if table.getn(array) ~= 1 then
-
- -- done
local exists = {}
local unique = {}
for _, v in ipairs(array) do
@@ -284,13 +279,9 @@ function table.unique(array, barrier)
table.insert(unique, v)
end
end
-
- -- update it
array = unique
end
end
-
- -- ok
return array
end