diff options
author | Ramy Medhat <abdelaal@google.com> | 2020-08-13 14:41:32 -0400 |
---|---|---|
committer | Ramy Medhat <abdelaal@google.com> | 2020-08-13 14:41:32 -0400 |
commit | 3491bbdbf87094a6fc6d280b5aaba461b1f7624d (patch) | |
tree | 11f3e202c8354a5d2b0d3f1fd26f3b7ef5d62528 /rbesetup.sh | |
parent | 14350c575f9e515502e1005f1834eec338069b8a (diff) | |
download | build-3491bbdbf87094a6fc6d280b5aaba461b1f7624d.tar.gz |
Add function to export default values for RBE related variables
Test: ran rbesetup.sh and small build after.
Change-Id: I429835f1bb6da75e2fcee7e9ddac6b11672121cd
Diffstat (limited to 'rbesetup.sh')
-rw-r--r-- | rbesetup.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rbesetup.sh b/rbesetup.sh index f9317a324f..adcf081313 100644 --- a/rbesetup.sh +++ b/rbesetup.sh @@ -33,4 +33,15 @@ function _export_metrics_uploader() { fi } +# This function sets RBE specific environment variables needed for the build to +# executed by RBE. This file should be sourced once per checkout of Android code. +function _set_rbe_vars() { + export USE_RBE="true" + export RBE_CXX_EXEC_STRATEGY="remote_local_fallback" + export RBE_JAVAC=1 + export RBE_R8=1 + export RBE_D8=1 +} + _export_metrics_uploader +_set_rbe_vars |