Remove --no-locals -> --release translation am: c5de1b6cb2 am: 4d9b7af491

am: 970dda8b41

Change-Id: I49f677402fe49a8ef2d645c1b61eb649ce4df4b3
This commit is contained in:
Colin Cross
2017-12-22 03:34:29 +00:00
committed by android-build-merger

View File

@@ -942,20 +942,12 @@ func (j *Module) compileDexFullD8(ctx android.ModuleContext, flags javaBuilderFl
// to D8 flags. See: b/69377755
var dxFlags []string
for _, x := range j.deviceProperties.Dxflags {
if x == "--core-library" {
switch x {
case "--core-library", "--dex", "--multi-dex":
continue
default:
dxFlags = append(dxFlags, x)
}
if x == "--dex" {
continue
}
if x == "--multi-dex" {
continue
}
if x == "--no-locals" {
dxFlags = append(dxFlags, "--release")
continue
}
dxFlags = append(dxFlags, x)
}
if ctx.AConfig().Getenv("NO_OPTIMIZE_DX") != "" {