Skip to content

Apache DataFusion SQL Query Engine

ARROW-3785: [C++] Enable using double-conversion from $ARROW_BUILD_TOOLCHAIN

Wes McKinney3bb9923ea68d
diff --git a/ci/appveyor-cpp-build.bat b/ci/appveyor-cpp-build.bat
index f59767768c..91212a63fe 100644
--- a/ci/appveyor-cpp-build.bat
+++ b/ci/appveyor-cpp-build.bat
@@ -92,7 +92,8 @@ if "%JOB%" == "Build_Debug" (
conda create -n arrow -q -y ^
python=%PYTHON% ^
six pytest setuptools numpy pandas cython ^
- thrift-cpp=0.11.0 boost-cpp
+ thrift-cpp=0.11.0 boost-cpp ^
+ -c conda-forge
call activate arrow
@@ -102,19 +103,10 @@ set BOOST_LIBRARYDIR=%CONDA_PREFIX%\Library\lib
if "%JOB%" == "Toolchain" (
@rem Install pre-built "toolchain" packages for faster builds
- conda install -q -y ^
- brotli ^
- bzip2 ^
- cmake ^
- flatbuffers ^
- gflags ^
- gtest ^
- git ^
- lz4-c ^
- rapidjson ^
- snappy ^
- zlib ^
- zstd
+ conda install -q -y --file=ci\conda_env_cpp.yml ^
+ python=%PYTHON% ^
+ -c conda-forge
+
set ARROW_BUILD_TOOLCHAIN=%CONDA_PREFIX%\Library
)
diff --git a/ci/appveyor-cpp-test-cmake-script.bat b/ci/appveyor-cpp-test-cmake-script.bat
index 86ecd506fb..25bf9bddbb 100644
--- a/ci/appveyor-cpp-test-cmake-script.bat
+++ b/ci/appveyor-cpp-test-cmake-script.bat
@@ -146,16 +146,15 @@ rmdir /S /Q %BUILD_DIR%
call deactivate
@rem Validate libs availability in conda toolchain
-mkdir %BUILD_DIR%
-pushd %BUILD_DIR%
-
set CONDA_ENV=arrow-cmake-tests-toolchain
conda create -n %CONDA_ENV% -q -y
conda install -n %CONDA_ENV% -q -y -c conda-forge ^
- flatbuffers rapidjson boost-cpp ^
- thrift-cpp snappy zlib brotli gflags lz4-c zstd
+ --file=ci\conda_env_cpp.yml
call activate %CONDA_ENV%
+mkdir %BUILD_DIR%
+pushd %BUILD_DIR%
+
set ARROW_BUILD_TOOLCHAIN=%CONDA_PREFIX%\Library
cmake -G "%GENERATOR%" ^
-DARROW_BOOST_USE_SHARED=OFF ^
diff --git a/ci/conda_env_cpp.yml b/ci/conda_env_cpp.yml
index 0ae21ec6d9..1e22e9017f 100644
--- a/ci/conda_env_cpp.yml
+++ b/ci/conda_env_cpp.yml
@@ -17,7 +17,9 @@
boost-cpp
brotli
+bzip2
cmake
+double-conversion
flatbuffers
gflags
glog
@@ -26,6 +28,7 @@ libprotobuf
lz4-c
python
rapidjson
+re2
snappy
thrift-cpp
zlib
diff --git a/ci/travis_install_toolchain.sh b/ci/travis_install_toolchain.sh
index 46dda6e128..86ac56d043 100755
--- a/ci/travis_install_toolchain.sh
+++ b/ci/travis_install_toolchain.sh
@@ -28,26 +28,11 @@ if [ ! -e $CPP_TOOLCHAIN ]; then
# Set up C++ toolchain from conda-forge packages for faster builds
conda create -y -q -p $CPP_TOOLCHAIN \
- boost-cpp \
- brotli \
- bzip2 \
+ --file=$TRAVIS_BUILD_DIR/ci/conda_env_cpp.yml \
${CONDA_LLVM} \
ccache \
- cmake \
curl \
- flatbuffers \
- gflags \
- glog \
- gtest \
- libprotobuf \
- lz4-c \
ninja \
nomkl \
- python=3.6 \
- rapidjson \
- re2 \
- snappy \
- thrift-cpp=0.11.0 \
- zlib \
- zstd
+ python=3.6
fi