From 081ecb813668bf48764ae5a2a2b33c0d4d9b6fe2 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 2 Nov 2024 23:09:41 +0800 Subject: [PATCH] fix bindir #5776 --- xmake/core/tool/toolchain.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index d5716ce2ea..29bd5a09f2 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