Repository navigation
GH-48178: [C++] Use FetchContent for bundled RE2 - #48179
Conversation
|
@github-actions crossbow submit -g r -g cpp |
|
Revision: 52369f3 Submitted crossbow builds: ursacomputing/crossbow @ actions-69fddcd9fb |
There was a problem hiding this comment.
Pull Request Overview
This PR migrates RE2 dependency management from ExternalProject to FetchContent, aligning with the project's goal of modernizing CMake dependency handling for CMake 3.25+.
Key changes:
- Converts RE2 from
ExternalProject_AddtoFetchContentwith custom install handling - Implements a dual-installation strategy to support gRPC's
ExternalProject-based build while preventing double installation - Updates gRPC integration to use the new
re2_fctarget and handle vendored RE2 paths
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit f8ae141. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 4 possible false positives for unstable benchmarks that are known to sometimes produce them. |
### Rationale for this change As a follow up of requiring a minimum CMake version >= 3.25 we discussed moving our dependencies from ExternalProject to FetchContent. This can simplify our third party dependency management. Moving RE2 is the next step before moving Protobuf and gRPC. ### What changes are included in this PR? The general change is moving from `ExternalProject` to `FetchContent`. It also add some required integration due to other dependencies, like gRPC, using `ExternalProject`. We not only have to build but also install in order for those other dependencies to find RE2. This causes some timing issues between config, build, install that requires us to create a custom target to depend on so the other dependencies find abseil. ### Are these changes tested? Yes, the changes are tested locally and on CI. ### Are there any user-facing changes? No * GitHub Issue: apache#48178 Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
As a follow up of requiring a minimum CMake version >= 3.25 we discussed moving our dependencies from ExternalProject to FetchContent. This can simplify our third party dependency management. Moving RE2 is the next step before moving Protobuf and gRPC.
What changes are included in this PR?
The general change is moving from
ExternalProjecttoFetchContent.It also add some required integration due to other dependencies, like gRPC, using
ExternalProject. We not only have to build but also install in order for those other dependencies to find RE2. This causes some timing issues between config, build, install that requires us to create a custom target to depend on so the other dependencies find abseil.Are these changes tested?
Yes, the changes are tested locally and on CI.
Are there any user-facing changes?
No