Support genrules as CrtBegin and CrtEnd in rust am: 018cbebd71
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959899 Change-Id: I5d6cc23f9ddac0016183ba21c21da95c7de12a1a
This commit is contained in:
@@ -1234,6 +1234,13 @@ func (mod *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
|
||||
lib.exportLinkDirs(linkPath)
|
||||
lib.exportLinkObjects(linkObject.String())
|
||||
}
|
||||
} else {
|
||||
switch {
|
||||
case depTag == cc.CrtBeginDepTag:
|
||||
depPaths.CrtBegin = append(depPaths.CrtBegin, android.OutputFileForModule(ctx, dep, ""))
|
||||
case depTag == cc.CrtEndDepTag:
|
||||
depPaths.CrtEnd = append(depPaths.CrtEnd, android.OutputFileForModule(ctx, dep, ""))
|
||||
}
|
||||
}
|
||||
|
||||
if srcDep, ok := dep.(android.SourceFileProducer); ok {
|
||||
|
Reference in New Issue
Block a user