aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--android/paths.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/android/paths.go b/android/paths.go
index 80863c96..e47b9e4b 100644
--- a/android/paths.go
+++ b/android/paths.go
@@ -906,9 +906,18 @@ func PathForPhony(ctx PathContext, phony string) WritablePath {
if strings.ContainsAny(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 {
basePath
}