From 76c2fdae16c324c721d22a8dc168dcd5216c4bc7 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 3 Mar 2019 21:02:54 +0800 Subject: fix platform bug --- xmake/core/platform/platform.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index 2b8d029bf..6f866f8fd 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -50,15 +50,14 @@ function _instance:name() return self._NAME end --- set the value to the platform info +-- set the value to the platform configuration function _instance:set(name, ...) - self._INFO:set(name, table.unwrap({...})) + self._INFO:apival_set(name, ...) end --- add the value to the platform info +-- add the value to the platform configuration function _instance:add(name, ...) - local info = table.wrap(self._INFO[name]) - self._INFO:set(name, table.unwrap(table.join(info, ...))) + self._INFO:apival_add(name, ...) end -- get the platform configuration -- cgit v1.3.1