Merge "Handle product vars *flags props in cc* modules"
This commit is contained in:
@@ -993,6 +993,6 @@ func TryVariableSubstitutions(slice []string, productVariable string) ([]string,
|
||||
// TryVariableSubstitution, replace string substitution formatting within s with Starlark
|
||||
// string.format compatible tag for productVariable.
|
||||
func TryVariableSubstitution(s string, productVariable string) (string, bool) {
|
||||
sub := productVariableSubstitutionPattern.ReplaceAllString(s, "{"+productVariable+"}")
|
||||
sub := productVariableSubstitutionPattern.ReplaceAllString(s, "$("+productVariable+")")
|
||||
return sub, s != sub
|
||||
}
|
||||
|
Reference in New Issue
Block a user