summaryrefslogtreecommitdiff
path: root/xmake/core/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-19 11:11:30 +0800
committerruki <[email protected]>2020-09-19 11:11:30 +0800
commit93236f01c005ed4ea1f961558769bb0fd02ea4d2 (patch)
tree008b3d70f141567f06ace0a4661cb5f52d1d1a1a /xmake/core/platform/platform.lua
parent31746c6a7856205fc1336d4bbc6cd303a4466e51 (diff)
improve emcc and wasm
Diffstat (limited to 'xmake/core/platform/platform.lua')
-rw-r--r--xmake/core/platform/platform.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index 5f75a7588..5fe693a1e 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -159,7 +159,7 @@ function _instance:toolchains(opt)
end
end
if names then
- for _, name in ipairs(names) do
+ for _, name in ipairs(table.wrap(names)) do
local toolchain_inst, errors = toolchain.load(name, {plat = self:name(), arch = self:arch()})
-- attempt to load toolchain from project
if not toolchain_inst and platform._project() then