This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 5f0aeb5de5 GH-46843: [C++] Don't use unity build for bundled AWS SDK 
for C++ (#46845)
5f0aeb5de5 is described below

commit 5f0aeb5de53fb25b59a52661a80071faef99a4a4
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Jun 20 10:10:42 2025 +0900

    GH-46843: [C++] Don't use unity build for bundled AWS SDK for C++ (#46845)
    
    ### Rationale for this change
    
    AWS SDK for C++ related products don't support unity build.
    
    ### What changes are included in this PR?
    
    Always disable unity build only for AWS SDK for C++ related products.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * GitHub Issue: #46843
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 cpp/cmake_modules/ThirdpartyToolchain.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake 
b/cpp/cmake_modules/ThirdpartyToolchain.cmake
index 5264beed78..3dbf0e6048 100644
--- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
+++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
@@ -5114,6 +5114,7 @@ function(build_awssdk)
   prepare_fetchcontent()
   set(BUILD_DEPS OFF)
   set(BUILD_TOOL OFF)
+  set(CMAKE_UNITY_BUILD OFF) # Unity build causes some build errors.
   set(ENABLE_TESTING OFF)
   set(IN_SOURCE_BUILD ON)
   set(MINIMIZE_SIZE ON)

Reply via email to