summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-21 00:51:04 +0800
committerruki <[email protected]>2022-06-21 00:51:04 +0800
commit47d44450f181dff85b6e77f02f184b0044604197 (patch)
tree1335127d5c7322fe262379a4192a57d222a76aba
parentcf2f731372623014772378fa95126e8b04806463 (diff)
improve tool
-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 21a27c91a..718cba8b6 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 and not self:get("toolchains") then
+ if not program then
program = config.get(toolkind)
end