Merge "Rust: WriteFileRule instead of printf for protos"

This commit is contained in:
Ivan Lozano
2020-12-11 19:14:29 +00:00
committed by Gerrit Code Review
4 changed files with 14 additions and 9 deletions

View File

@@ -433,6 +433,7 @@ func (library *libraryDecorator) compile(ctx ModuleContext, flags Flags, deps Pa
if library.sourceProvider != nil {
// Assume the first source from the source provider is the library entry point.
srcPath = library.sourceProvider.Srcs()[0]
deps.srcProviderFiles = append(deps.srcProviderFiles, library.sourceProvider.Srcs()...)
} else {
srcPath, _ = srcPathFromModuleSrcs(ctx, library.baseCompiler.Properties.Srcs)
}