diff options
| author | ruki <[email protected]> | 2020-06-18 22:36:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-06-18 09:39:31 +0800 |
| commit | 83a67d7f3dceda689aef8a5faaaba42336f61a20 (patch) | |
| tree | ce086590d164b15016e286c4aca3189245432ab7 /xmake/core/platform | |
| parent | 7448d34175ac73c87622adce7b1d2f5cefd20cdc (diff) | |
fix platform toolchains
Diffstat (limited to 'xmake/core/platform')
| -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 |
