diff options
| author | ruki <[email protected]> | 2019-03-03 21:02:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-03 21:02:54 +0800 |
| commit | 76c2fdae16c324c721d22a8dc168dcd5216c4bc7 (patch) | |
| tree | 6e44144d95929de5a115e7fad342b3fa5c071f18 /xmake/core/platform/platform.lua | |
| parent | caac1232ec9de212cee02c66ea5a1f506ed2b414 (diff) | |
fix platform bug
Diffstat (limited to 'xmake/core/platform/platform.lua')
| -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 |
