Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pjh5 committed Feb 28, 2018
1 parent 43bbfed commit 1255992
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conda/no_cuda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ echo "Installing caffe2 to ${PREFIX}"
PYTHON_ARGS="$(python ./scripts/get_python_cmake_flags.py)"
CMAKE_ARGS=()

# ccache
if [ -n "${CCACHE_WRAPPER_PATH}" ]; then
CMAKE_ARGS+=("-DCMAKE_C_COMPILER=$CCACHE_WRAPPER_PATH/gcc")
CMAKE_ARGS+=("-DCMAKE_CXX_COMPILER=$CCACHE_WRAPPER_PATH/g++")
export CCACHE_BASEDIR="${CONDA_PREFIX}"
fi

# Default leveldb from conda-forge doesn't work. If you want to use leveldb,
# use this old pip version
# pip install leveldb==0.18
Expand Down
1 change: 1 addition & 0 deletions conda/no_cuda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ build:
skip: True # [win]
script_env:
- CONDA_CMAKE_ARGS
- CCACHE_WRAPPER_PATH

requirements:
build:
Expand Down

0 comments on commit 1255992

Please sign in to comment.