summaryrefslogtreecommitdiff
path: root/python/builder.go
diff options
context:
space:
mode:
Diffstat (limited to 'python/builder.go')
-rw-r--r--python/builder.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/builder.go b/python/builder.go
index ec4cb4ea2..11a792a4a 100644
--- a/python/builder.go
+++ b/python/builder.go
@@ -70,7 +70,7 @@ func init() {
}
func registerBuildActionForParFile(ctx android.ModuleContext, embeddedLauncher bool,
- launcherPath android.Path, interpreter, main, binName string,
+ launcherPath android.OptionalPath, interpreter, main, binName string,
srcsZips android.Paths) android.Path {
// .intermediate output path for merged zip file.
@@ -104,9 +104,9 @@ func registerBuildActionForParFile(ctx android.ModuleContext, embeddedLauncher b
"srcsZips": strings.Join(srcsZips.Strings(), " "),
},
})
- } else {
+ } else if launcherPath.Valid() {
// added launcherPath to the implicits Ninja dependencies.
- implicits = append(implicits, launcherPath)
+ implicits = append(implicits, launcherPath.Path())
// .intermediate output path for entry_point.txt
entryPoint := android.PathForModuleOut(ctx, entryPointFile).String()