Allow experimental Java target 21 by default
Bug: 342332820 Test: EXPERIMENTAL_TARGET_JAVA_VERSION_21=true m Change-Id: I6cc21bf191385df91c2446b7cd6291a0e3532bea
This commit is contained in:
@@ -827,6 +827,10 @@ func (c *config) IsEnvFalse(key string) bool {
|
||||
return value == "0" || value == "n" || value == "no" || value == "off" || value == "false"
|
||||
}
|
||||
|
||||
func (c *config) TargetsJava21() bool {
|
||||
return c.IsEnvTrue("EXPERIMENTAL_TARGET_JAVA_VERSION_21")
|
||||
}
|
||||
|
||||
// EnvDeps returns the environment variables this build depends on. The first
|
||||
// call to this function blocks future reads from the environment.
|
||||
func (c *config) EnvDeps() map[string]string {
|
||||
|
Reference in New Issue
Block a user