Registers a `CompilerLibrary` with the environment. Note that the library does not automatically get added to a `Compiler`. `NewCompiler` relies on `Config` to determine which libraries to load.
| 42 | // does not automatically get added to a `Compiler`. `NewCompiler` relies |
| 43 | // on `Config` to determine which libraries to load. |
| 44 | void RegisterCompilerLibrary( |
| 45 | absl::string_view name, absl::string_view alias, int version, |
| 46 | absl::AnyInvocable<CompilerLibrary() const> library_factory) { |
| 47 | extension_registry_.RegisterCompilerLibrary(name, alias, version, |
| 48 | std::move(library_factory)); |
| 49 | } |
| 50 | |
| 51 | void SetDescriptorPool( |
| 52 | std::shared_ptr<const google::protobuf::DescriptorPool> descriptor_pool) { |
no outgoing calls