]> 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>
Tue, 24 Mar 2020 19:53:51 +0000 (20:53 +0100)
commit7958f32c5e007c09e7fb316c0c61886270f144a7
tree288a6563723bd36c61dd691fd3c03a3c6fda53ff
parentdd680d7c8ce0af0f75e66aa89c54338d022f47e6
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

(cherry picked from commit cece6046bbab113eb57018b41a679b82ff6d8f62)
src/ccache.c