summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-08 19:31:39 +0800
committerruki <[email protected]>2020-11-08 19:31:39 +0800
commit89ca182fc97765d4e2a7bb57a565044fdca07586 (patch)
tree39dc277ea6ac1dda1188d1cf3ae5ca21cf234b22
parente6b218340557d4493aeb42b6117c3cbb1ec9a5d5 (diff)
fix toolchain bindir
-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 725d1abd9..3a971362d 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -179,7 +179,7 @@ end
-- get the bin directory
function _instance:bindir()
local bindir = config.get("bin") or self:info():get("bindir")
- if self:cross() and self:sdkdir() and os.isdir(path.join(self:sdkdir(), "bin")) then
+ if not bindir and self:cross() and self:sdkdir() and os.isdir(path.join(self:sdkdir(), "bin")) then
bindir = path.join(self:sdkdir(), "bin")
end
return bindir