Index: ninja |
=================================================================== |
--- ninja (revision 172082) |
+++ ninja (working copy) |
@@ -8,7 +8,12 @@ |
THIS_DIR="$(dirname "${0}")" |
if [ "${OS}" = "Linux" ]; then |
- exec "${THIS_DIR}/ninja-linux64" "$@" |
+ machine=$(getconf LONG_BIT) |
+ if [ "$machine" = "64" ]; then |
+ exec "${THIS_DIR}/ninja-linux64" "$@" |
+ else |
+ exec "${THIS_DIR}/ninja-linux32" "$@" |
Nico
2012/12/10 20:54:01
Should you check for = 32 in an elif and error out
|
+ fi |
elif [ "${OS}" = "Darwin" ]; then |
exec "${THIS_DIR}/ninja-mac" "$@" |
elif [[ ${OS} == CYGWIN* ]]; then |