diff options
author | 2025-03-20 16:11:36 -0700 | |
---|---|---|
committer | 2025-03-20 16:11:36 -0700 | |
commit | 29e0a00b2a9010b7b30f004fb9f6a2ad7ea20bcb (patch) | |
tree | cb888af41cf7962e5243791334e27beb1d7007b0 /android/module.go | |
parent | 36e0719e9ef8f0969254c7fd7aac355288e8e63e (diff) | |
parent | 8c31132dba8e206387296ec2a9d850832794d9b4 (diff) |
Snap for 13248265 from 8c31132dba8e206387296ec2a9d850832794d9b4 to 25Q2-release
Change-Id: If932ac6e530acdff73391ec4a2b3afb3a7adc401
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go index 87377cc75..ecd0f239c 100644 --- a/android/module.go +++ b/android/module.go @@ -22,6 +22,7 @@ import ( "reflect" "slices" "sort" + "strconv" "strings" "github.com/google/blueprint" @@ -2699,6 +2700,13 @@ func (e configurationEvalutor) EvaluateConfiguration(condition proptools.Configu return proptools.ConfigurableValueString(v) case "bool": return proptools.ConfigurableValueBool(v == "true") + case "int": + i, err := strconv.ParseInt(v, 10, 64) + if err != nil { + ctx.OtherModulePropertyErrorf(m, property, "integer soong_config_variable was not an int: %q", v) + return proptools.ConfigurableValueUndefined() + } + return proptools.ConfigurableValueInt(i) case "string_list": return proptools.ConfigurableValueStringList(strings.Split(v, " ")) default: |