summaryrefslogtreecommitdiff
path: root/xmake/core/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-20 00:30:23 +0800
committerruki <[email protected]>2020-05-19 21:02:23 +0800
commit04493b00d03e87e3c2af7d9f58bb43edb77eb410 (patch)
treeeb0a7b5ecb9369cc1d7b67b8a7c1008492d7e974 /xmake/core/platform/platform.lua
parent86598231b463786d3a20bdb267e54f352f3c1b63 (diff)
add cross and llvm toolchains
Diffstat (limited to 'xmake/core/platform/platform.lua')
-rw-r--r--xmake/core/platform/platform.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index 3e3b537d1..1ca688636 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -110,8 +110,7 @@ function _instance:toolchains()
local names = {}
if config.get("toolchain") then
table.insert(names, config.get("toolchain"))
- end
- if self._INFO:get("toolchains") then
+ elseif self._INFO:get("toolchains") then
table.join2(names, self._INFO:get("toolchains"))
end
toolchains = {}