summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-04 23:52:18 +0800
committerruki <[email protected]>2019-03-04 17:13:53 +0800
commitf8753e436dc75203361a6a5256235f2796701e6f (patch)
tree7ad78485ed4523135c6390ba0b8079b7a3c46bfc /xmake/core/tool/tool.lua
parent81222c3b9d2aec685ae0869adf58130d707af9b0 (diff)
modify changelog
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index 55bf350e4..92253c82a 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -32,6 +32,7 @@ local path = require("base/path")
local utils = require("base/utils")
local table = require("base/table")
local string = require("base/string")
+local config = require("project/config")
local sandbox = require("sandbox/sandbox")
local platform = require("platform/platform")
local import = require("sandbox/modules/import")
@@ -132,7 +133,7 @@ end
function tool.load(kind, program)
-- init key
- local key = kind .. (program or "")
+ local key = kind .. (program or "") .. (config.get("arch") or os.arch())
-- get it directly from cache dirst
tool._TOOLS = tool._TOOLS or {}