diff options
| author | ruki <[email protected]> | 2020-03-16 22:54:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-16 11:25:39 +0800 |
| commit | 84ac2ca8ec5bb77cd994c6f4d42573920a45f14a (patch) | |
| tree | 2c843eb06aa5948ef70f632bcb7ab9c520bbe553 | |
| parent | 7e50349442f7526e4ea9c261df83e7f27497ccf1 (diff) | |
improve to find toolchains
| -rw-r--r-- | xmake/modules/detect/sdks/find_cross_toolchain.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_cross_toolchain.lua b/xmake/modules/detect/sdks/find_cross_toolchain.lua index b36696f78..8c70e0b87 100644 --- a/xmake/modules/detect/sdks/find_cross_toolchain.lua +++ b/xmake/modules/detect/sdks/find_cross_toolchain.lua @@ -45,6 +45,12 @@ function _find_bindir(sdkdir, opt) if ldpath then return path.directory(ldpath), "" end + + -- attempt to use the bin directory + local bindir = opt.bindir or path.join(sdkdir, "bin") + if os.isdir(bindir) then + return bindir + end end -- find cross toolchain |
