summaryrefslogtreecommitdiff
path: root/android/config.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-12-11 16:49:18 -0800
committer Cole Faust <colefaust@google.com> 2024-12-11 16:49:18 -0800
commitf3240f4102fa9b439f9e739f17075eec0b2d39c8 (patch)
tree8474eff43a268ef0497341d978e0fb3357fb0d6b /android/config.go
parentf7bbd2fe40e43f7fda7e08d08eeb9c2a93552ad9 (diff)
Add the ability to always run errorprone inline
Currently, if you enable RUN_ERROR_PRONE=true, we create a seperate jar from the main build which runs errorprone. But errorprone builds also produce a regular built jar as a side effect, so you could use it as your main java builder action. We don't do that because if you toggled errorprone on/off, you'd invalidate all the java builds. However, on CI, we always run with errorprone on, so there, it makes more sense to always do the inline builds so that you don't have to build everything twice. Add a new environment variable to control running errorprone inline or not. Bug: 383626679 Test: Presubmits Change-Id: I262af140fdeacb8342fe801f0c86f516d8fca587
Diffstat (limited to 'android/config.go')
-rw-r--r--android/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go
index b811c55eb..d78bbf774 100644
--- a/android/config.go
+++ b/android/config.go
@@ -1320,6 +1320,10 @@ func (c *config) RunErrorProne() bool {
return c.IsEnvTrue("RUN_ERROR_PRONE")
}
+func (c *config) RunErrorProneInline() bool {
+ return c.IsEnvTrue("RUN_ERROR_PRONE_INLINE")
+}
+
// XrefCorpusName returns the Kythe cross-reference corpus name.
func (c *config) XrefCorpusName() string {
return c.Getenv("XREF_CORPUS")