Merge "Soong: add -T to nanopb call to suppress timestamp"

This commit is contained in:
Treehugger Robot
2020-11-25 23:47:20 +00:00
committed by Gerrit Code Review

View File

@@ -130,6 +130,8 @@ func protoFlags(ctx ModuleContext, flags Flags, p *android.ProtoProperties) Flag
flags.protoC = true flags.protoC = true
flags.protoOptionsFile = true flags.protoOptionsFile = true
flags.proto.OutTypeFlag = "--nanopb_out" flags.proto.OutTypeFlag = "--nanopb_out"
// Disable nanopb timestamps to support remote caching.
flags.proto.OutParams = append(flags.proto.OutParams, "-T")
plugin = "protoc-gen-nanopb" plugin = "protoc-gen-nanopb"
case "full": case "full":
flags.proto.OutTypeFlag = "--cpp_out" flags.proto.OutTypeFlag = "--cpp_out"