Skip to content

Commit 0921ae4

Browse files
committed
using shared glog and gflags
Signed-off-by: Yuan <yuanzhou@apache.org>
1 parent eaaaeb4 commit 0921ae4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

dev/vcpkg/triplets/arm64-osx-release.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ set(VCPKG_BUILD_TYPE release)
1111
set(VCPKG_C_FLAGS "")
1212
set(VCPKG_CXX_FLAGS "-std=c++20 -Wno-missing-template-arg-list-after-template-kw")
1313

14+
if(PORT MATCHES "glog")
15+
set(VCPKG_LIBRARY_LINKAGE dynamic)
16+
endif()
17+
18+
if(PORT MATCHES "gflags")
19+
set(VCPKG_LIBRARY_LINKAGE dynamic)
20+
endif()

ep/build-velox/src/build-velox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function compile {
138138
-DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc"
139139
fi
140140
if [ -n "${GLUTEN_VCPKG_ENABLED:-}" ]; then
141-
COMPILE_OPTION="$COMPILE_OPTION -DVELOX_GFLAGS_TYPE=static"
141+
COMPILE_OPTION="$COMPILE_OPTION -DVELOX_GFLAGS_TYPE=shared"
142142
fi
143143

144144
COMPILE_OPTION="$COMPILE_OPTION -DCMAKE_BUILD_TYPE=${BUILD_TYPE}"

0 commit comments

Comments
 (0)