Allow plug-ins to be built by cmake (#3752)

* Remove references to AVX code.

* Allow plugins to be built by cmake
This commit is contained in:
Rory Mitchell
2018-10-04 22:03:52 +13:00
committed by GitHub
parent c6b5df67f6
commit 34522d56f0
4 changed files with 21 additions and 317 deletions

View File

@@ -124,21 +124,15 @@ if [ ${TASK} == "cmake_test" ]; then
cd ..
rm -rf release-1.7.0.zip
# Build/test without AVX
# Build/test
rm -rf build
mkdir build && cd build
cmake .. -DGOOGLE_TEST=ON -DGTEST_ROOT=$PWD/../gtest/
PLUGINS="-DPLUGIN_LZ4=ON -DPLUGIN_DENSE_PARSER=ON"
cmake .. -DGOOGLE_TEST=ON -DGTEST_ROOT=$PWD/../gtest/ ${PLUGINS}
make
cd ..
./testxgboost
rm -rf build
# Build/test with AVX
mkdir build && cd build
cmake .. -DGOOGLE_TEST=ON -DUSE_AVX=ON -DGTEST_ROOT=$PWD/../gtest/
make
cd ..
./testxgboost
fi
if [ ${TASK} == "cpp_test" ]; then