Skip to content

Commit d6c7525

Browse files
committed
cache
1 parent 0c20d2e commit d6c7525

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ if [ -z "$CUDNN_LFLAG" ]; then
192192
fi
193193

194194
NVCC="ccache $CUDA_HOME/bin/nvcc"
195+
CC="${CC:-$(command -v ccache >/dev/null && echo 'ccache clang' || echo 'clang')}"
195196
if [ -n "$NVCC_ARCH" ]; then
196197
ARCH=$NVCC_ARCH
197198
elif command -v nvidia-smi &>/dev/null; then

0 commit comments

Comments
 (0)