Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Windows] use clcache when building on appveyor
- Loading branch information
Showing
3 changed files
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@echo on | ||
|
||
conda update -y -q conda | ||
conda config --set auto_update_conda false | ||
conda info -a | ||
|
||
conda config --set show_channel_urls True | ||
|
||
@rem Help with SSL timeouts to S3 | ||
conda config --set remote_connect_timeout_secs 12 | ||
|
||
conda config --add channels https://repo.continuum.io/pkgs/free | ||
conda config --add channels conda-forge | ||
conda info -a | ||
|
||
@rem Use clcache for faster builds | ||
pip install -q git+https://github.com/frerich/clcache.git | ||
clcache -s | ||
set CC=clcache | ||
set CXX=clcache | ||
set CLCACHE_SERVER=1 | ||
set CLCACHE_HARDLINK=1 | ||
powershell.exe -Command "Start-Process clcache-server" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@echo on | ||
|
||
conda create -n shogun -q -y python=%PYTHON% ^ | ||
setuptools numpy scipy eigen ^ | ||
cmake snappy zlib ctags ply | ||
call activate shogun | ||
|
||
mkdir %APPVEYOR_BUILD_FOLDER%\build | ||
pushd %APPVEYOR_BUILD_FOLDER%\build | ||
|
||
cmake -G "%VSVER%" ^ | ||
-DCMAKE_BUILD_TYPE=%CONFIGURATION% ^ | ||
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^ | ||
-DBUILD_META_EXAMPLES=OFF ^ | ||
-DENABLE_TESTING=ON .. || exit /B | ||
|
||
cmake --build . --target install --config %CONFIGURATION% -- /maxcpucount:2 || exit /B |