Merge changes I0d679648,I31542e7f am: 31d57588c9
am: 6414dde54e
Change-Id: I4b1dce04c3785d20d260af4cf1b23c3644c2277f
This commit is contained in:
commit
176de85374
2 changed files with 5 additions and 7 deletions
|
@ -87,12 +87,10 @@ func init() {
|
|||
return ctx.Config().Getenv("ANDROID_JAVA_HOME")
|
||||
})
|
||||
pctx.VariableFunc("JlinkVersion", func(ctx android.PackageVarContext) string {
|
||||
switch ctx.Config().Getenv("EXPERIMENTAL_USE_OPENJDK11_TOOLCHAIN") {
|
||||
case "false":
|
||||
return "9"
|
||||
default:
|
||||
return "11"
|
||||
if override := ctx.Config().Getenv("OVERRIDE_JLINK_VERSION_NUMBER"); override != "" {
|
||||
return override
|
||||
}
|
||||
return "11"
|
||||
})
|
||||
|
||||
pctx.SourcePathVariable("JavaToolchain", "${JavaHome}/bin")
|
||||
|
|
|
@ -219,8 +219,8 @@ func NewConfig(ctx Context, args ...string) Config {
|
|||
if override, ok := ret.environ.Get("OVERRIDE_ANDROID_JAVA_HOME"); ok {
|
||||
return override
|
||||
}
|
||||
if toolchain9, ok := ret.environ.Get("EXPERIMENTAL_USE_OPENJDK11_TOOLCHAIN"); ok && toolchain9 == "false" {
|
||||
return java9Home
|
||||
if toolchain11, ok := ret.environ.Get("EXPERIMENTAL_USE_OPENJDK11_TOOLCHAIN"); ok && toolchain11 != "true" {
|
||||
ctx.Fatalln("The environment variable EXPERIMENTAL_USE_OPENJDK11_TOOLCHAIN is no longer supported. An OpenJDK 11 toolchain is now the global default.")
|
||||
}
|
||||
return java11Home
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue