jonkeane commented on code in PR #43736:
URL: https://github.com/apache/arrow/pull/43736#discussion_r1720841989


##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -4965,8 +4965,16 @@ macro(build_awssdk)
   set(AWSSDK_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/awssdk_ep-install")
   set(AWSSDK_INCLUDE_DIR "${AWSSDK_PREFIX}/include")
 
+  # The AWS SDK has a few warnings around shortening lengths
+  set(AWS_EP_COMMON_CMAKE_ARGS ${EP_COMMON_CMAKE_ARGS})
+  if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID 
STREQUAL
+                                                    "Clang")
+    string(REPLACE "-Wconversion" "-Wconversion -Wno-error=shorten-64-to-32"
+                   AWS_EP_COMMON_CMAKE_ARGS "${AWS_EP_COMMON_CMAKE_ARGS}")
+  endif()
+
   set(AWSSDK_COMMON_CMAKE_ARGS
-      ${EP_COMMON_CMAKE_ARGS}
+      ${AWS_EP_COMMON_CMAKE_ARGS}

Review Comment:
   Ah, yes! Thanks for this pointer. I tried constructing this before based on 
the substrait approach which is similar, but I couldn't get the cmake to work, 
but this did!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to