Skip to content

Commit b10c3fc

Browse files
chore: default not use oss and use beijing-oss (alibaba#207)
1 parent cfbd3ca commit b10c3fc

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ message(STATUS "BUILD_PYTHON_BINDINGS:${BUILD_PYTHON_BINDINGS}")
2828
option(BUILD_TOOLS "Build tools" ON)
2929
message(STATUS "BUILD_TOOLS:${BUILD_TOOLS}")
3030

31-
option(USE_OSS_MIRROR "Use OSS mirror for faster third-party downloads" ON)
31+
option(USE_OSS_MIRROR "Use OSS mirror for faster third-party downloads" OFF)
32+
if(DEFINED ENV{USE_OSS_MIRROR} AND NOT "$ENV{USE_OSS_MIRROR}" STREQUAL "")
33+
set(USE_OSS_MIRROR "$ENV{USE_OSS_MIRROR}" CACHE BOOL "Use OSS mirror for faster third-party downloads" FORCE)
34+
endif()
3235
message(STATUS "USE_OSS_MIRROR:${USE_OSS_MIRROR}")
3336

3437
cc_directory(thirdparty)

‎thirdparty/arrow/CMakeLists.txt‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ set(LIB_ARROW_DATASET ${EXTERNAL_LIB_DIR}/libarrow_dataset.a)
2222
set(CONFIGURE_ENV_LIST "")
2323
if(USE_OSS_MIRROR)
2424
list(APPEND CONFIGURE_ENV_LIST
25-
"ARROW_BOOST_URL=https://zvec.oss-cn-hongkong.aliyuncs.com/thirdparty/boost-1.88.0-cmake.tar.gz"
26-
"ARROW_RAPIDJSON_URL=https://zvec.oss-cn-hongkong.aliyuncs.com/thirdparty/rapidjson-232389d4f1012dddec4ef84861face2d2ba85709.tar.gz"
27-
"ARROW_RE2_URL=https://zvec.oss-cn-hongkong.aliyuncs.com/thirdparty/re2-2022-06-01.tar.gz"
28-
"ARROW_THRIFT_URL=https://zvec.oss-cn-hongkong.aliyuncs.com/thirdparty/thrift-0.22.0.tar.gz"
29-
"ARROW_UTF8PROC_URL=https://zvec.oss-cn-hongkong.aliyuncs.com/thirdparty/utf8proc-2.10.0.tar.gz"
30-
"ARROW_XSIMD_URL=https://zvec.oss-cn-hongkong.aliyuncs.com/thirdparty/xsimd-13.0.0.tar.gz"
31-
"ARROW_ZLIB_URL=https://zvec.oss-cn-hongkong.aliyuncs.com/thirdparty/zlib-1.3.1.tar.gz"
25+
"ARROW_BOOST_URL=https://zvec-bj.oss-cn-beijing.aliyuncs.com/thirdparty/boost-1.88.0-cmake.tar.gz"
26+
"ARROW_RAPIDJSON_URL=https://zvec-bj.oss-cn-beijing.aliyuncs.com/thirdparty/rapidjson-232389d4f1012dddec4ef84861face2d2ba85709.tar.gz"
27+
"ARROW_RE2_URL=https://zvec-bj.oss-cn-beijing.aliyuncs.com/thirdparty/re2-2022-06-01.tar.gz"
28+
"ARROW_THRIFT_URL=https://zvec-bj.oss-cn-beijing.aliyuncs.com/thirdparty/thrift-0.22.0.tar.gz"
29+
"ARROW_UTF8PROC_URL=https://zvec-bj.oss-cn-beijing.aliyuncs.com/thirdparty/utf8proc-2.10.0.tar.gz"
30+
"ARROW_XSIMD_URL=https://zvec-bj.oss-cn-beijing.aliyuncs.com/thirdparty/xsimd-13.0.0.tar.gz"
31+
"ARROW_ZLIB_URL=https://zvec-bj.oss-cn-beijing.aliyuncs.com/thirdparty/zlib-1.3.1.tar.gz"
3232
)
3333
message(STATUS "Using OSS mirror for third-party downloads")
3434
endif()

0 commit comments

Comments
 (0)