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

Unified Diff: build/config/android/internal_rules.gni

Issue 1314493010: Never run errorprone on non-Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 | build/host_jar.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/android/internal_rules.gni
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni
index f92d4ba0cfdf3932ea7e0f41cf3367c70d5b5db2..36843a1932d9f9754596bea3b7000d93100c7f8c 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -1033,7 +1033,9 @@ template("compile_java") {
}
_enable_errorprone = use_errorprone_java_compiler
- if (defined(invoker.enable_errorprone)) {
+ if (!_chromium_code) {
+ _enable_errorprone = false
+ } else if (defined(invoker.enable_errorprone)) {
_enable_errorprone = invoker.enable_errorprone
}
« no previous file with comments | « no previous file | build/host_jar.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698