[DO NOT MERGE] Add support for experimentally enabling RBE support on specific rules.
This CL adds RBE support to javac, r8, and d8 rules which is only enabled if respective environment variables are set. Test: an aosp_crosshatch build with and without the new variables. Bug: b/166182389 Change-Id: Ic82f3627944f6a5ee7b9f3228170c2709b1bfcb8 Merged-In: Ic82f3627944f6a5ee7b9f3228170c2709b1bfcb8
This commit is contained in:
committed by
Kousik Kumar
parent
c0d95df5d0
commit
4807a1b5ec
@@ -38,7 +38,7 @@ var (
|
||||
// this, all java rules write into separate directories and then are combined into a .jar file
|
||||
// (if the rule produces .class files) or a .srcjar file (if the rule produces .java files).
|
||||
// .srcjar files are unzipped into a temporary directory when compiled with javac.
|
||||
javac = pctx.AndroidRemoteStaticRule("javac", android.SUPPORTS_GOMA,
|
||||
javac = pctx.AndroidRemoteStaticRule("javac", android.RemoteRuleSupports{Goma: true, RBE: true, RBEFlag: android.RBE_JAVAC},
|
||||
blueprint.RuleParams{
|
||||
Command: `rm -rf "$outDir" "$annoDir" "$srcJarDir" && mkdir -p "$outDir" "$annoDir" "$srcJarDir" && ` +
|
||||
`${config.ZipSyncCmd} -d $srcJarDir -l $srcJarDir/list -f "*.java" $srcJars && ` +
|
||||
|
Reference in New Issue
Block a user