summarylogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 76f0bf6c4e9..6fc95a486a4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -44,12 +44,12 @@ arch:
# Incorporate ccache in nvcc
- |
_gcc="$(readlink /opt/cuda/bin/gcc)"
- _g++="$(readlink /opt/cuda/bin/g++)"
+ _gpp="$(readlink /opt/cuda/bin/g++)"
sudo mv /opt/cuda/bin/nvcc /opt/cuda/bin/nvcc.bin
sudo rm /opt/cuda/bin/g{cc,++}
echo -e "#!/bin/sh -\n/usr/bin/ccache /opt/cuda/bin/nvcc.bin \"\$@\"" | sudo dd of=/opt/cuda/bin/nvcc
echo -e "#!/bin/sh -\n/usr/bin/ccache $_gcc \"\$@\"" | sudo dd of=/opt/cuda/bin/gcc
- echo -e "#!/bin/sh -\n/usr/bin/ccache $_g++ \"\$@\"" | sudo dd of=/opt/cuda/bin/g++
+ echo -e "#!/bin/sh -\n/usr/bin/ccache $_gpp \"\$@\"" | sudo dd of=/opt/cuda/bin/g++
sudo chmod +x /opt/cuda/bin/{nvcc,g{cc,++}}
# Build
- ccache -s