summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-02 23:09:41 +0800
committerruki <[email protected]>2024-11-02 23:09:41 +0800
commit081ecb813668bf48764ae5a2a2b33c0d4d9b6fe2 (patch)
tree5d9a2f6bdebbab90a40b954b046a204b165da5ae
parentc6bb229de4c708506344016304b74f457f304434 (diff)
fix bindir #5776
-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 d5716ce2e..29bd5a09f 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -239,7 +239,7 @@ end
-- get the bin directory
function _instance:bindir()
local bindir = self:config("bindir") or config.get("bin") or self:info():get("bindir")
- if not bindir and self:is_cross() and self:sdkdir() and os.isdir(path.join(self:sdkdir(), "bin")) then
+ if not bindir and self:sdkdir() and os.isdir(path.join(self:sdkdir(), "bin")) then
bindir = path.join(self:sdkdir(), "bin")
end
return bindir