diff options
author | bartus | 2019-06-29 15:36:14 +0200 |
---|---|---|
committer | bartus | 2019-06-29 15:36:14 +0200 |
commit | 68b5779c79afc564e511de51a4f4ae5cc17b2e61 (patch) | |
tree | 18cc5f9a3f76b39edd34a6954e99a784ce6684b3 /PKGBUILD | |
parent | 26b2612b7922b1609f9b7252d5eaeb2f8b64b9f7 (diff) | |
download | aur-68b5779c79afc564e511de51a4f4ae5cc17b2e61.tar.gz |
update ccache for nvcc
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,5 @@ +#!/hint/bash +#shellcheck disable=SC2034 # Maintainer: pingplug <pingplug@foxmail.com> # Contributor: cornholio <vigo.the.unholy.carpathian@gmail.com> @@ -42,7 +44,13 @@ fi if [[ -f "/usr/lib/ccache/bin/nvcc-ccache" ]] ; then _CMAKE_FLAGS+=( \ -DCUDA_NVCC_EXECUTABLE=/usr/lib/ccache/bin/nvcc-ccache \ - -DCUDA_HOST_COMPILER=/usr/lib/ccache/bin/gcc-7 \ + ) +fi + +_cuda_gcc=$(basename $(readlink /opt/cuda/bin/gcc)) +if [[ -f "/usr/lib/ccache/bin/$_cuda_gcc" ]] ; then + _CMAKE_FLAGS+=( \ + -DCUDA_NVCC_EXECUTABLE=/usr/lib/ccache/bin/$_cuda_gcc \ ) fi |