summaryrefslogtreecommitdiff
path: root/xmake/core/tool/toolchain.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-18 23:54:35 +0800
committerruki <[email protected]>2020-05-18 17:27:33 +0800
commit694bff5b15ada2850b21ce0588d6963654ab0dc2 (patch)
tree057dcd4017814a2ffa071ae55ddf8aeaab57848e /xmake/core/tool/toolchain.lua
parentfb7bc83c06972744d6f2c5139b5bc079e06b7b11 (diff)
add clang/gcc toolchains
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
-rw-r--r--xmake/core/tool/toolchain.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index e79a32b22..8f524b623 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -296,7 +296,7 @@ function toolchain.load(name, plat)
end
-- get cache key
- local cachekey = plat .. "_" .. (config.get("arch") or os.arch())
+ local cachekey = name .. "_" .. plat .. "_" .. (config.get("arch") or os.arch())
-- get it directly from cache dirst
toolchain._TOOLCHAINS = toolchain._TOOLCHAINS or {}