diff options
Diffstat (limited to 'lib/buildsystem.sh')
-rw-r--r-- | lib/buildsystem.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh index 8207bcc..ffdba86 100644 --- a/lib/buildsystem.sh +++ b/lib/buildsystem.sh @@ -140,17 +140,18 @@ oh_buildsystem_arch() local bs_arch= local system= - if [ ${#} -eq 1 ]; then + if [ ${#} -eq 2 ]; then arch="${1}" + system="${2}" + else + return 125 + fi + + if [ "x${system}" = 'x' ]; then system="$(oh_buildsystem_find 'configure')" if [ ${?} -ne 0 ]; then return 1 fi - elif [ ${#} -eq 2 ]; then - arch="${1}" - system="${2}" - else - return 125 fi # Try to find a suitable build system host arch. |