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

Unified Diff: build/android/buildbot_functions.sh

Issue 9585002: Replace make function back now that not using goma (removed in http://chromiumcodereview.appspot.co… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot_functions.sh
diff --git a/build/android/buildbot_functions.sh b/build/android/buildbot_functions.sh
index f3d1f4a2c1427281e292299045f6d7248adcb924..9ad5d492e272e226ae2794e77f030b7c64d53a0a 100755
--- a/build/android/buildbot_functions.sh
+++ b/build/android/buildbot_functions.sh
@@ -115,6 +115,29 @@ function bb_setup_goma_internal {
export PATH=$GOMA_DIR:$PATH
}
+# Temporarily added back when goma disabled
+function old_make {
+ # TODO(michaelbai): how to use ccache in NDK.
+ if [ -n "${USE_CCACHE}" ]; then
+ if [ -e "${PREBUILT_CCACHE_PATH}" ]; then
+ use_ccache_var="$PREBUILT_CCACHE_PATH "
+ else
+ use_ccache_var=""
+ fi
+ fi
+ # Only cross-compile if the build is being done either from Chromium's src/
+ # directory, or through WebKit, in which case the WEBKIT_ANDROID_BUILD
+ # environment variable will be defined. WebKit uses a different directory.
+ if [ -f "$PWD/build/android/envsetup.sh" ] ||
+ [ -n "${WEBKIT_ANDROID_BUILD}" ]; then
+ CC="${use_ccache_var}${CROSS_CC}" CXX="${use_ccache_var}${CROSS_CXX}" \
+ LINK="${CROSS_LINK}" AR="${CROSS_AR}" RANLIB="${CROSS_RANLIB}" \
+ command make $*
+ else
+ command make $*
+ fi
+}
+
# $@: make args.
# Use goma if possible; degrades to non-Goma if needed.
function bb_goma_make {
@@ -125,7 +148,7 @@ function bb_goma_make {
# http://build.chromium.org/p/chromium/builders/Linux%20x64/builds/23995/steps/compile/logs/stdio
# But not on Android trybots?
# http://build.chromium.org/p/tryserver.chromium/builders/android/builds/2136/steps/Compile/logs/stdio
- make -j${JOBS} "$@"
+ old_make -j${JOBS} "$@"
return
bb_setup_goma_internal
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698