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

Enabling ccache for conda builds #1757

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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