From 83a67d7f3dceda689aef8a5faaaba42336f61a20 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 18 Jun 2020 22:36:35 +0800 Subject: fix platform toolchains --- xmake/core/platform/platform.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index eb247f7af..e9a66d0dc 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -130,7 +130,8 @@ function _instance:toolchains(opt) toolchains = {} if not (opt and opt.all) then names = config.get("__toolchains") - else + end + if not names then -- get the given toolchain local toolchain_given = config.get("toolchain") if toolchain_given then -- cgit v1.3.1