Fix embedded_launcher can't find files
The problem came from Python libraries doesn't know the information that we enabled embedded_launcher (only Python binary knows about that). And we can't simply remove runfiles dir for Python libraries since host Python mode need this. Bug: b/80441699 Test: m perf_profo_flames Change-Id: I73ffc4d7504f95a708ae7cca47bc6c15a673aa31
This commit is contained in:
@@ -96,11 +96,8 @@ func registerBuildActionForParFile(ctx android.ModuleContext, embeddedLauncher b
|
||||
Output: binFile,
|
||||
Implicits: implicits,
|
||||
Args: map[string]string{
|
||||
"interp": strings.Replace(interpreter, "/", `\/`, -1),
|
||||
// we need remove "runfiles/" suffix since stub script starts
|
||||
// searching for main file in each sub-dir of "runfiles" directory tree.
|
||||
"main": strings.Replace(strings.TrimPrefix(main, runFiles+"/"),
|
||||
"/", `\/`, -1),
|
||||
"interp": strings.Replace(interpreter, "/", `\/`, -1),
|
||||
"main": strings.Replace(main, "/", `\/`, -1),
|
||||
"template": template.String(),
|
||||
"stub": stub,
|
||||
"mergedZip": mergedZip.String(),
|
||||
|
Reference in New Issue
Block a user