aboutsummaryrefslogtreecommitdiffstats
path: root/java/dex.go
diff options
context:
space:
mode:
authorJaewoong Jung <jungjw@google.com>2018-11-29 15:08:44 -0800
committerJaewoong Jung <jungjw@google.com>2018-11-30 15:23:16 +0000
commit1d6eb68731d70c34c4c648d1185f16c613d366b7 (patch)
treeb83b327ab309a334a5bdb1dd1657d4f1a0fc2f65 /java/dex.go
parenta9e5a40bb857f4010b5539ee47913b5d9caa1651 (diff)
downloadandroid_build_soong-1d6eb68731d70c34c4c648d1185f16c613d366b7.tar.gz
android_build_soong-1d6eb68731d70c34c4c648d1185f16c613d366b7.tar.bz2
android_build_soong-1d6eb68731d70c34c4c648d1185f16c613d366b7.zip
Use debug mode when running R8 for eng builds.
Bug: 119601874 Test: Built for different variants. Change-Id: I2250587eb3e457ca15265eb9f8359872e9b08363
Diffstat (limited to 'java/dex.go')
-rw-r--r--java/dex.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/dex.go b/java/dex.go
index 5cec3252..a6d486ab 100644
--- a/java/dex.go
+++ b/java/dex.go
@@ -160,6 +160,11 @@ func (j *Module) r8Flags(ctx android.ModuleContext, flags javaBuilderFlags) (r8F
// TODO(ccross): if this is an instrumentation test of an obfuscated app, use the
// dictionary of the app and move the app from libraryjars to injars.
+ // Don't strip out debug information for eng builds.
+ if ctx.Config().Eng() {
+ r8Flags = append(r8Flags, "--debug")
+ }
+
return r8Flags, r8Deps
}