Remove --no-locals -> --release translation
--no-locals is never used any more, remove the translation. Bug: 70886092 Test: m checkbuild Change-Id: Ie89aaad618c12c288d7e7bca863834cf7ee824fb
This commit is contained in:
parent
cd406fa70b
commit
c5de1b6cb2
1 changed files with 4 additions and 12 deletions
16
java/java.go
16
java/java.go
|
@ -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") != "" {
|
||||
|
|
Loading…
Reference in a new issue