Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: ninja

Issue 11511007: Add Linux 32-bit versions of Ninja (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ninja-linux32 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ninja
===================================================================
--- ninja (revision 172134)
+++ 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
+ 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
« no previous file with comments | « no previous file | ninja-linux32 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698