Editions: Embed resolved features of descriptor.proto for pure python.
Because pure python builds all descriptors at runtime via reflection, it's unable to parse options during the build of descriptor.proto (i.e. before we've built the options schemas). We always lazily parse these options to avoid this, but that still means options can't be *used* during this build. Since the current build process makes heavy use of features (which previously just relied on syntax), this poses a problem for editions. To get around this, we just embed the resolved features directly into the gencode for this one file. This will allow us to skip feature resolution for these descriptors and still consider features in their build. PiperOrigin-RevId: 577495949
M
Mike Kruskal committed
63f4c503a2762abaec136209ee5b62452ecf206e
Parent: 57bb1e5
Committed by Copybara-Service <copybara-worker@google.com>
on 10/28/2023, 8:05:32 PM