Skip to content

Commit

Permalink
Fix some review comments
Browse files Browse the repository at this point in the history
Rever CMAKE_VERSION back to CMAKE on .env

Fix typo on file name
  • Loading branch information
raulcd committed Jan 21, 2025
1 parent cc4cea4 commit 4b88388
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ UBUNTU=22.04

# Default versions for various dependencies
CLANG_TOOLS=14
CMAKE_VERSION=3.25.0
CMAKE=3.25.0
CUDA=11.2.2
DASK=latest
DOTNET=8.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ index b717bca..5aa8ac9 100644
list(APPEND AWS_C_FLAGS -Wno-strict-aliasing)
endif()

+ if(CMAKE_C_IMPLICIT_LINK_LIBRARIES MATCHES "mingw32")
+ if (CMAKE_C_IMPLICIT_LINK_LIBRARIES MATCHES "mingw32")
+ list(APPEND AWS_C_FLAGS -D__USE_MINGW_ANSI_STDIO=1 -Wno-unused-local-typedefs)
+ endif()
+
Expand Down
5 changes: 0 additions & 5 deletions ci/scripts/install_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ if [ -z ${archs[$arch]} ]; then
fi
arch=${archs[$arch]}

declare -A platforms
platforms=([linux]=linux
[macos]=macos
[windows]=windows)

version=$1
prefix=$2

Expand Down
12 changes: 9 additions & 3 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5045,8 +5045,14 @@ macro(build_awssdk)
# GH-44950: This is required to build under Rtools40 and we may be able to
# remove it if/when we no longer need to build under Rtools40
if(WIN32 AND NOT MSVC)
string(APPEND AWS_C_FLAGS " -D_WIN32_WINNT=0x0601 -Wno-error -Wno-error=format= -Wno-error=format-extra-args")
string(APPEND AWS_CXX_FLAGS " -D_WIN32_WINNT=0x0601 -Wno-error -Wno-error=format= -Wno-error=format-extra-args")
string(APPEND
AWS_C_FLAGS
" -D_WIN32_WINNT=0x0601 -Wno-error -Wno-error=format= -Wno-error=format-extra-args"
)
string(APPEND
AWS_CXX_FLAGS
" -D_WIN32_WINNT=0x0601 -Wno-error -Wno-error=format= -Wno-error=format-extra-args"
)
endif()

set(AWSSDK_COMMON_CMAKE_ARGS
Expand Down Expand Up @@ -5091,7 +5097,7 @@ macro(build_awssdk)
find_program(PATCH patch REQUIRED)
# Patch aws_c_common to build under Rtools40
set(AWS_C_COMMON_PATCH_COMMAND ${PATCH} -p1 -i
${CMAKE_SOURCE_DIR}/../ci/rtools/BuildAwsCCommon.patch)
${CMAKE_SOURCE_DIR}/../ci/rtools/aws_c_common_ep.patch)
message(STATUS "Hello ${AWS_C_COMMON_PATCH_COMMAND}")
# aws_c_io_ep to build under Rtools40
set(AWS_C_IO_PATCH_COMMAND ${PATCH} -p1 -i
Expand Down
22 changes: 11 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ services:
arch: ${ARCH}
base: "${ARCH}/ubuntu:${UBUNTU}"
clang_tools: ${CLANG_TOOLS}
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
gcc: ${GCC}
llvm: ${LLVM}
shm_size: *shm-size
Expand Down Expand Up @@ -427,7 +427,7 @@ services:
arch: ${ARCH}
base: "${ARCH}/ubuntu:${UBUNTU}"
clang_tools: ${CLANG_TOOLS}
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
gcc: ${GCC}
llvm: ${LLVM}
shm_size: *shm-size
Expand Down Expand Up @@ -458,7 +458,7 @@ services:
cache_from:
- ${REPO}:centos-7-cpp-static
args:
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
shm_size: *shm-size
volumes:
- .:/arrow:delegated
Expand All @@ -481,7 +481,7 @@ services:
args:
arch: ${ARCH}
base: "${ARCH}/ubuntu:${UBUNTU}"
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
llvm: ${LLVM}
shm_size: *shm-size
ulimits: *ulimits
Expand Down Expand Up @@ -576,7 +576,7 @@ services:
arch: ${ARCH}
base: nvidia/cuda:${CUDA}-devel-ubuntu${UBUNTU}
clang_tools: ${CLANG_TOOLS}
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
llvm: ${LLVM}
shm_size: *shm-size
ulimits: *ulimits
Expand Down Expand Up @@ -627,7 +627,7 @@ services:
args:
arch: ${ARCH}
clang_tools: ${CLANG_TOOLS}
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
llvm: ${LLVM}
shm_size: *shm-size
volumes: *ubuntu-volumes
Expand Down Expand Up @@ -707,7 +707,7 @@ services:
args:
arch: ${ARCH}
clang_tools: ${CLANG_TOOLS}
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
llvm: ${LLVM}
shm_size: *shm-size
volumes: *ubuntu-volumes
Expand Down Expand Up @@ -1595,7 +1595,7 @@ services:
tz: ${TZ}
r_prune_deps: ${R_PRUNE_DEPS}
r_custom_ccache: ${R_CUSTOM_CCACHE}
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
shm_size: *shm-size
environment:
<<: [*common, *sccache]
Expand Down Expand Up @@ -1625,7 +1625,7 @@ services:
- ${REPO}:amd64-ubuntu-20.04-r-sanitizer
args:
base: wch1/r-debug:latest
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
r_bin: RDsan
tz: ${TZ}
r_prune_deps: ${R_PRUNE_DEPS}
Expand All @@ -1646,7 +1646,7 @@ services:
- ${REPO}:r-rhub-clang-devel-latest
args:
base: rhub/clang-asan
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
r_dev: ${ARROW_R_DEV}
r_bin: R
tz: ${TZ}
Expand Down Expand Up @@ -1678,7 +1678,7 @@ services:
- ${REPO}:amd64-ubuntu-20.04-r-valgrind
args:
base: wch1/r-debug:latest
cmake: ${CMAKE_VERSION}
cmake: ${CMAKE}
r_bin: RDvalgrind
tz: ${TZ}
environment:
Expand Down

0 comments on commit 4b88388

Please sign in to comment.