Chromium Code Reviews| Index: ninja |
| =================================================================== |
| --- ninja (revision 172130) |
| +++ ninja (working copy) |
| @@ -8,7 +8,15 @@ |
| THIS_DIR="$(dirname "${0}")" |
| if [ "${OS}" = "Linux" ]; then |
| - exec "${THIS_DIR}/ninja-linux64" "$@" |
| + machine=$(getconf LONG_BIT) |
| + if [ "$machine" = "64" ]; then |
|
iannucci
2012/12/10 23:22:21
Use [[ ]]'s
tony
2012/12/10 23:37:45
Done.
|
| + exec "${THIS_DIR}/ninja-linux64" "$@" |
| + elif [ "$machine" = "32" ]; then |
| + exec "${THIS_DIR}/ninja-linux32" "$@" |
| + else |
| + echo Unknown architecture-- unable to run ninja. |
|
iannucci
2012/12/10 23:22:21
Maybe print out what $machine is here for debuggin
tony
2012/12/10 23:37:45
Done.
|
| + exit 1 |
| + fi |
| elif [ "${OS}" = "Darwin" ]; then |
| exec "${THIS_DIR}/ninja-mac" "$@" |
| elif [[ ${OS} == CYGWIN* ]]; then |