diff options
-rw-r--r-- | android/paths.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/paths.go b/android/paths.go index b5a14016f..810695830 100644 --- a/android/paths.go +++ b/android/paths.go @@ -1011,8 +1011,13 @@ func (p OutputPath) buildDir() string { return p.config.buildDir } +func (p OutputPath) objPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleObjPath { + return PathForModuleObj(ctx, subdir, pathtools.ReplaceExtension(p.path, ext)) +} + var _ Path = OutputPath{} var _ WritablePath = OutputPath{} +var _ objPathProvider = OutputPath{} // toolDepPath is a Path representing a dependency of the build tool. type toolDepPath struct { |