Commit 13e7a6ae authored by tony@chromium.org's avatar tony@chromium.org

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
parent a1f76a2f
......@@ -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
......
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment