diff options
| -rw-r--r-- | xmake/core/platform/platform.lua | 9 |
1 files 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 |
