androidmk no longer escaping escaped quotes in CFLAGS

Bug: 37547491
Test: m -j

Change-Id: I2f406be477f3990bf109778eb9adc9c33db2f2ad
This commit is contained in:
Jeff Gaston
2017-05-31 15:44:17 -07:00
parent 38d3d5d2e5
commit fd4ce1bb68
3 changed files with 38 additions and 1 deletions

View File

@@ -29,6 +29,11 @@ func SimpleMakeString(s string, pos Pos) *MakeString {
}
}
func (ms *MakeString) Clone() (result *MakeString) {
clone := *ms
return &clone
}
func (ms *MakeString) Pos() Pos {
return ms.StringPos
}
@@ -164,6 +169,12 @@ func (ms *MakeString) EndsWith(ch rune) bool {
return s[len(s)-1] == uint8(ch)
}
func (ms *MakeString) ReplaceLiteral(input string, output string) {
for i := range ms.Strings {
ms.Strings[i] = strings.Replace(ms.Strings[i], input, output, -1)
}
}
func splitAnyN(s, sep string, n int) []string {
ret := []string{}
for n == -1 || n > 1 {