summaryrefslogtreecommitdiff
path: root/xmake/core/tool/toolchain.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-10-27 00:38:01 +0800
committerruki <[email protected]>2021-10-27 00:38:01 +0800
commit63c46927a81593033193b12bbf3a72db5c9726dd (patch)
tree4cc3d2c9509f725a8133c0374ce004800ab34d63 /xmake/core/tool/toolchain.lua
parentab85e9e49a2e5de91631726efaeb9b12fb6babce (diff)
improve armcc and armclang toolchain
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
-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 59e171d58..2ff1dbc65 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -210,7 +210,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:cross() and self:sdkdir() and os.isdir(path.join(self:sdkdir(), "bin")) then
+ if not bindir and self:is_cross() and self:sdkdir() and os.isdir(path.join(self:sdkdir(), "bin")) then
bindir = path.join(self:sdkdir(), "bin")
end
return bindir