diff options
author | 2023-11-23 16:18:35 +0000 | |
---|---|---|
committer | 2023-11-23 16:18:35 +0000 | |
commit | 9075d32212e8cfc347f970de28d3adb2733df22b (patch) | |
tree | 55374eaab86f317d26caa10b9ac3c812a52463b2 /envsetup.sh | |
parent | c96bf2caec0c707b1985e6aeba058cc052c13261 (diff) | |
parent | 2c807515c08e4f25e46140c6f7718e338b47d8ba (diff) |
Merge "Suggest developers use -eng builds instead when they lunch -userdebug" into main
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/envsetup.sh b/envsetup.sh index 3d29ed7a39..cc808d282c 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -836,15 +836,21 @@ function lunch() # Note this is the string "release", not the value of the variable. 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 |