summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-22 00:10:18 +0800
committerruki <[email protected]>2022-06-22 00:10:18 +0800
commit30d40a9880ac5fc99dbce7c17774252984266e41 (patch)
treebb43b6cd8c19499d75593775d3db55d21c2e17cc
parentfe2fb1334bf9f9cb6da448c774ed9006d6e56e5d (diff)
revert tools for target
-rw-r--r--xmake/core/project/target.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 718cba8b6..21a27c91a 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -2001,7 +2001,7 @@ function _instance:tool(toolkind)
end
end
-- get program from `xmake f --cc`
- if not program then
+ if not program and not self:get("toolchains") then
program = config.get(toolkind)
end