Skip to content

Commit 52369f3

Browse files
committed
Disable unity builds for bundled RE2 causing some errors on Windows
1 parent d2d566d commit 52369f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2815,8 +2815,10 @@ function(build_re2)
28152815
fetchcontent_declare(re2
28162816
URL ${RE2_SOURCE_URL}
28172817
URL_HASH "SHA256=${ARROW_RE2_BUILD_SHA256_CHECKSUM}")
2818-
28192818
prepare_fetchcontent()
2819+
2820+
# Unity build causes some build errors
2821+
set(CMAKE_UNITY_BUILD OFF)
28202822
fetchcontent_makeavailable(re2)
28212823

28222824
# Install RE2 for gRPC to find via find_package()

0 commit comments

Comments
 (0)