Skip to content

protoc-gen-rust-grpc: Always reconfigure, --fresh#2715

Merged
ejona86 merged 1 commit into
grpc:masterfrom
ejona86:cmake-always-reconfigure
Jun 30, 2026
Merged

protoc-gen-rust-grpc: Always reconfigure, --fresh#2715
ejona86 merged 1 commit into
grpc:masterfrom
ejona86:cmake-always-reconfigure

Conversation

@ejona86

@ejona86 ejona86 commented Jun 30, 2026

Copy link
Copy Markdown
Member

002ac6d changed cmake's outdir to be different for each protobuf version. However, this was not sufficient to avoid linking errors because cmake's own files aren't rebuilt and it uses a horrible mix of old and new settings.

always_reconfigure causes the rust cmake library to always run cmake to configure itself, and then we need --fresh so that cmake ignores its previous caches and actually reconfigures.

002ac6d changed cmake's outdir to be different for each protobuf
version. However, this was not sufficient to avoid linking errors
because cmake's own files aren't rebuilt and it uses a horrible mix of
old and new settings.

always_reconfigure causes the rust cmake library to always run cmake to
configure itself, and then we need --fresh so that cmake ignores its
previous caches and actually reconfigures.
@ejona86 ejona86 requested a review from dfawley June 30, 2026 21:30
@ejona86 ejona86 merged commit 829ce18 into grpc:master Jun 30, 2026
26 checks passed
@ejona86 ejona86 deleted the cmake-always-reconfigure branch June 30, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants