Merge "Rename release_variable to release_flag in selects" into main am: ef14cae605

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3081788

Change-Id: I8f9d5a9fde93bcbb0f55db9291e7ad27de3df7c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2024-05-10 00:00:42 +00:00
committed by Automerger Merge Worker

View File

@@ -2145,9 +2145,9 @@ func (e configurationEvalutor) EvaluateConfiguration(condition proptools.Configu
ctx := e.ctx
m := e.m
switch condition.FunctionName() {
case "release_variable":
case "release_flag":
if condition.NumArgs() != 1 {
ctx.OtherModulePropertyErrorf(m, property, "release_variable requires 1 argument, found %d", condition.NumArgs())
ctx.OtherModulePropertyErrorf(m, property, "release_flag requires 1 argument, found %d", condition.NumArgs())
return proptools.ConfigurableValueUndefined()
}
if v, ok := ctx.Config().productVariables.BuildFlags[condition.Arg(0)]; ok {