mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Add Linux 32-bit versions of Ninja
I compiled this on the WebKit Linux 32 bot and verified that it runs. Review URL: https://codereview.chromium.org/11511007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@172191 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
10
ninja
10
ninja
@@ -8,7 +8,15 @@ OS="$(uname -s)"
|
||||
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" "$@"
|
||||
elif [[ "$machine" = "32" ]]; then
|
||||
exec "${THIS_DIR}/ninja-linux32" "$@"
|
||||
else
|
||||
echo Unknown architecture \($machine\) -- unable to run ninja.
|
||||
exit 1
|
||||
fi
|
||||
elif [ "${OS}" = "Darwin" ]; then
|
||||
exec "${THIS_DIR}/ninja-mac" "$@"
|
||||
elif [[ ${OS} == CYGWIN* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user