diff options
| author | ruki <[email protected]> | 2017-01-05 13:20:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-01-06 17:20:08 +0800 |
| commit | 63463f04bee8ea369c2bbe0306f1e9316333f0dc (patch) | |
| tree | bdc6c663fa8877f20779d6032c18db84c2626440 /xmake/core/platform | |
| parent | 06a7207823add9becd9f0929c9ed1b4eb2a1ab44 (diff) | |
uses loaded return value for language and platform
Diffstat (limited to 'xmake/core/platform')
| -rw-r--r-- | xmake/core/platform/platform.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index ded064214..e066f2a36 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -119,13 +119,13 @@ function _instance:get(name) if self._g == nil and info.load ~= nil then -- load it - local ok, errors = sandbox.load(info.load) + local ok, results = sandbox.load(info.load) if not ok then - os.raise(errors) + os.raise(results) end -- save _g - self._g = getfenv(info.load)._g + self._g = results end -- get it from _g |
