summaryrefslogtreecommitdiff
path: root/envsetup.sh
diff options
context:
space:
mode:
author Mark White <anothermark@google.com> 2023-10-25 17:27:07 +0000
committer Mark White <anothermark@google.com> 2023-10-25 17:34:04 +0000
commit2c807515c08e4f25e46140c6f7718e338b47d8ba (patch)
tree6e0836a87929ecc81dce80e9222a6c9c406e5ca4 /envsetup.sh
parentea9d5cfbeb0cbf0d4bfc9d368983e0ae9b25d2d1 (diff)
Suggest developers use -eng builds instead when they lunch -userdebug
This is because -eng provides faster local builds. (also moving hints to where they are more likely to be seen) Test: lunch cf_x86_64_phone-userdebug Fixes: 307753064 Change-Id: I52cf9e9c399dbb3a52c7952f7204a9e567d15c22
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/envsetup.sh b/envsetup.sh
index e448bd3cc8..7a22840f5f 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -848,15 +848,21 @@ function lunch()
fi
export TARGET_BUILD_TYPE=release
+ [[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo
+
+ set_stuff_for_environment
+ [[ -n "${ANDROID_QUIET_BUILD:-}" ]] || printconfig
+
+ if [ "${TARGET_BUILD_VARIANT}" = "userdebug" ] && [[ -z "${ANDROID_QUIET_BUILD}" ]]; then
+ echo
+ echo "Want FASTER LOCAL BUILDS? Use -eng instead of -userdebug (however for" \
+ "performance benchmarking continue to use userdebug)"
+ fi
if [ $used_lunch_menu -eq 1 ]; then
echo
echo "Hint: next time you can simply run 'lunch $selection'"
fi
- [[ -n "${ANDROID_QUIET_BUILD:-}" ]] || echo
-
- set_stuff_for_environment
- [[ -n "${ANDROID_QUIET_BUILD:-}" ]] || printconfig
destroy_build_var_cache
if [[ -n "${CHECK_MU_CONFIG:-}" ]]; then