Fix PathForPhony
PathForPhony was prefixing out/soong to all of the phony targets. Test: m checkbuild Change-Id: If54d9c692b79751a09eef76c734dd2a1f7db325b
This commit is contained in:
@@ -906,9 +906,18 @@ func PathForPhony(ctx PathContext, phony string) WritablePath {
|
|||||||
if strings.ContainsAny(phony, "$/") {
|
if strings.ContainsAny(phony, "$/") {
|
||||||
reportPathError(ctx, "Phony target contains invalid character ($ or /): %s", phony)
|
reportPathError(ctx, "Phony target contains invalid character ($ or /): %s", phony)
|
||||||
}
|
}
|
||||||
return OutputPath{basePath{phony, ctx.Config(), ""}}
|
return PhonyPath{basePath{phony, ctx.Config(), ""}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PhonyPath struct {
|
||||||
|
basePath
|
||||||
|
}
|
||||||
|
|
||||||
|
func (p PhonyPath) writablePath() {}
|
||||||
|
|
||||||
|
var _ Path = PhonyPath{}
|
||||||
|
var _ WritablePath = PhonyPath{}
|
||||||
|
|
||||||
type testPath struct {
|
type testPath struct {
|
||||||
basePath
|
basePath
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user