diff options
| -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 |
