Skip to content

Commit bcb8d5f

Browse files
authored
Merge branch 'main' into dependabot/github_actions/mamba-org/setup-micromamba-3
2 parents 00add4c + 01e0fc9 commit bcb8d5f

29 files changed

Lines changed: 6145 additions & 71 deletions

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ endif
207207

208208
dependencies-mac: ## install dependencies for mac
209209
HOMEBREW_NO_AUTO_UPDATE=1 brew bundle install
210+
brew tap-new local/old || true
211+
brew extract --version=2.72 autoconf local/old
212+
brew install local/old/autoconf@2.72
213+
brew unlink autoconf && brew link --force autoconf@2.72
210214
brew unlink bison flex && brew link --force bison flex
211215

212216
dependencies-debian: ## install dependencies for linux - note that zip is needed by bootstrap_vcpkg.sh, do not remove

cpp/cmake/modules/FindDepsArrowAdapter.cmake

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,25 @@ cmake_minimum_required(VERSION 3.7.2)
33
# ARROW
44
find_package(Arrow REQUIRED)
55
include_directories(${ARROW_INCLUDE_DIR})
6+
7+
# Resolve Arrow link targets based on platform and vcpkg configuration.
8+
# Sets CSP_ARROW_LINK_LIBS for use in target_link_libraries().
9+
# On Windows with vcpkg, also applies the ws2_32.dll fix and defines ARROW_STATIC.
10+
if(WIN32)
11+
if(CSP_USE_VCPKG)
12+
set(CSP_ARROW_LINK_LIBS Arrow::arrow_static)
13+
add_compile_definitions(ARROW_STATIC)
14+
else()
15+
# Until we manage to get the fix for ws2_32.dll in arrow-16 into conda, manually fix the error here
16+
get_target_property(LINK_LIBS Arrow::arrow_shared INTERFACE_LINK_LIBRARIES)
17+
string(REPLACE "ws2_32.dll" "ws2_32" FIXED_LINK_LIBS "${LINK_LIBS}")
18+
set_target_properties(Arrow::arrow_shared PROPERTIES INTERFACE_LINK_LIBRARIES "${FIXED_LINK_LIBS}")
19+
set(CSP_ARROW_LINK_LIBS arrow_shared)
20+
endif()
21+
else()
22+
if(CSP_USE_VCPKG)
23+
set(CSP_ARROW_LINK_LIBS arrow_static)
24+
else()
25+
set(CSP_ARROW_LINK_LIBS arrow)
26+
endif()
27+
endif()

cpp/csp/adapters/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ if(CSP_BUILD_KAFKA_ADAPTER)
33
add_subdirectory(kafka)
44
endif()
55

6+
if(CSP_BUILD_ARROW_ADAPTER)
7+
add_subdirectory(arrow)
8+
endif()
9+
610
if(CSP_BUILD_PARQUET_ADAPTER)
711
add_subdirectory(parquet)
812
endif()

0 commit comments

Comments
 (0)