Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cmake): automatically set ctype=CORD workarounds #13877

Conversation

coryan
Copy link
Member

@coryan coryan commented Mar 28, 2024

With Protobuf < v23.x (aka 4.23.x) we need to enable some ugly workarounds to use ctype=CORD fields in the storage library. With this change CMake automatically sets the workaround option if needed. Bazel assumes the version of Protobuf is >= v23 and disables the workarounds by default. That is reasonable because Bazel users update more often (or at least we believe that).

Part of the work for #13875


This change is Reviewable

With Protobuf < v23.x (aka 4.23.x) we need to enable some ugly
workarounds to use `ctype=CORD` fields in the storage library. With this
change CMake automatically sets the workaround option if needed. Bazel
assumes the version of Protobuf is >= v23 and disables the workarounds
by default. That is reasonable because Bazel users update more often (or
at least we believe that).
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.64%. Comparing base (8b7fd79) to head (bdee85a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13877      +/-   ##
==========================================
+ Coverage   93.04%   93.64%   +0.60%     
==========================================
  Files        2178     2265      +87     
  Lines      185243   195574   +10331     
==========================================
+ Hits       172353   183140   +10787     
+ Misses      12890    12434     -456     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coryan coryan marked this pull request as ready for review March 29, 2024 00:17
@coryan coryan requested review from a team as code owners March 29, 2024 00:17
@coryan coryan merged commit a5015d0 into googleapis:main Mar 29, 2024
62 checks passed
@coryan coryan deleted the feat-cmake-automatically-detect-ctype-cord-workaround branch March 29, 2024 00:21
JavierMatosD pushed a commit to microsoft/vcpkg that referenced this pull request Apr 24, 2024
Updates google-cloud-cpp to the latest release (v2.23.0)

Removed `DGOOGLE_CLOUD_CPP_ENABLE_CTYPE_CORD_WORKAROUND` since it is no
longer used because it is automatically set now
(googleapis/google-cloud-cpp#13877).

Tested locally (on x64-linux) with:

```
 for feature in "cloudcontrolspartner" "storagecontrol" "apphub" "backupdr"; do ./vcpkg remove google-cloud-cpp; ./vcpkg install "google-cloud-cpp[core,${feature}]" || break; done
```

and

```
./vcpkg remove google-cloud-cpp && ./vcpkg install 'google-cloud-cpp[*]'
```

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] SHA512s are updated for each updated download.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] Any patches that are no longer applied are deleted from the port's
directory.
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.
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.

None yet

2 participants