diff options
| author | ruki <[email protected]> | 2020-11-02 22:32:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-02 22:32:17 +0800 |
| commit | e918256c7d57e54590f1672cf8021210ea115cd0 (patch) | |
| tree | dd7666db2397ea1997853eadc768bb08d7fe6fcc | |
| parent | 0042ba55b96bb6303a70903d3fd263584c4d20af (diff) | |
fix bindir
| -rw-r--r-- | xmake/core/tool/toolchain.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index 5730b238a..7e8290b83 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 os.isdir(path.join(self:sdkdir(), "bin")) then + if self:cross() and self:sdkdir() and os.isdir(path.join(self:sdkdir(), "bin")) then bindir = path.join(self:sdkdir(), "bin") end return bindir |
