genrule: expand $$ to $$
An escaped $ sign in an expanded string needs to be re-escaped so it can pass through to ninja. Test: m -j libLLVMObject Change-Id: I2f7890417fd6f534e6e21cace3d86ae9ef708ce5
This commit is contained in:
@@ -57,7 +57,7 @@ func getMapping(s string, mapping func(string) (string, error)) (string, int, er
|
||||
}
|
||||
return "", len(s), fmt.Errorf("missing )")
|
||||
case '$':
|
||||
return s[0:1], 1, nil
|
||||
return "$$", 1, nil
|
||||
default:
|
||||
i := strings.IndexFunc(s, unicode.IsSpace)
|
||||
if i == 0 {
|
||||
|
Reference in New Issue
Block a user