diff options
| -rw-r--r-- | xmake/core/platform/platform.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
