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

Unified Diff: build/android/envsetup_functions.sh

Issue 11366243: android: Print error when trying to build on 32-bit host. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
« build/android/envsetup.sh ('K') | « build/android/envsetup.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/envsetup_functions.sh
diff --git a/build/android/envsetup_functions.sh b/build/android/envsetup_functions.sh
index 16ec004227aec6d8d547d3f810c8ecc3f2d4514b..b667abc0e0b45a16dec331eed4bbc642bbc82cbd 100755
--- a/build/android/envsetup_functions.sh
+++ b/build/android/envsetup_functions.sh
@@ -157,6 +157,7 @@ common_gyp_vars() {
print_usage() {
echo "usage: ${0##*/} [--target-arch=value] [--help]" >& 2
echo "--target-arch=value target CPU architecture (arm=default, x86)" >& 2
+ echo "--try-32 try building a 32-bit host architecture" >&2
bulach 2012/11/15 00:51:00 to avoid potential confusion, maybe try-32-host?
digit1 2012/11/15 09:30:24 That's actually a very nice suggestion, will do.
echo "--help this help" >& 2
}
@@ -167,11 +168,15 @@ print_usage() {
# --help Prints out help message.
################################################################################
process_options() {
+ try_32bit_build=
Isaac (away) 2012/11/15 01:09:16 nit: this line not needed, there are very few comm
digit1 2012/11/15 09:30:24 That sounds like very bad coding style to me. You'
Isaac (away) 2012/11/15 09:59:14 And I would have gotten away with it, too, if not
felipeg 2012/11/15 13:01:05 Hey Isaac, I agree that sourced bash scripts are e
while [[ $1 ]]; do
case "$1" in
--target-arch=*)
target_arch="$(echo "$1" | sed 's/^[^=]*=//')"
;;
+ --try-32)
+ try_32bit_build=true
+ ;;
--help)
print_usage
return 1
« build/android/envsetup.sh ('K') | « build/android/envsetup.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698