Index: build/config/android/internal_rules.gni |
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni |
index 952f78aa3f18f32da80cd31ef2fc79c219702e78..0006a1bfc014244deef620bb72420301c0640c97 100644 |
--- a/build/config/android/internal_rules.gni |
+++ b/build/config/android/internal_rules.gni |
@@ -310,7 +310,8 @@ template("dex") { |
args += [ "--incremental" ] |
} |
- if (defined(invoker.no_locals) && invoker.no_locals) { |
+ # EMMA requires --no-locals. |
+ if (emma_coverage) { |
args += [ "--no-locals=1" ] |
} |
@@ -1743,7 +1744,6 @@ template("java_library_impl") { |
_jar_path, |
] |
output = _dex_path |
- no_locals = _emma_instrument |
deps = [ |
":$_compile_java_target", |
] |