]> git.ipfire.org Git - thirdparty/ccache.git/commit
When compiling CUDA code, recognize -dc as compilation only argument
authorAlexander Korsunsky <alexander.korsunsky@rcpe.at>
Tue, 16 Apr 2019 14:38:51 +0000 (16:38 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 31 Jul 2019 19:18:55 +0000 (21:18 +0200)
commitcece6046bbab113eb57018b41a679b82ff6d8f62
treea8f440650966ff26baf6422aa03777e56b8ed45b
parenta5e5b6dc8eae73e707d125bb3328713c4fa43892
When compiling CUDA code, recognize -dc as compilation only argument

nvcc's options -dc or --device-c imply -c but also generates device
code. We catch it as an option if our guessed compiler is NVCC
src/ccache.c