From: Laurent Bouhier Date: Sun, 30 Jun 2024 12:42:11 +0000 (+0200) Subject: feat: Support NVCC --compile option (#1475) X-Git-Tag: v4.11~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bca5013e3d72808089435dd5f2d92e972db01fc;p=thirdparty%2Fccache.git feat: Support NVCC --compile option (#1475) The nvcc (CUDA) compiler has a extra option compliant with -c: --compile. https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/#supported-phases So ccache should see the --compile option as the -c option (especially because the CUDA MVS plugin use it!) --- diff --git a/src/ccache/argprocessing.cpp b/src/ccache/argprocessing.cpp index ae74e522..a5e2e24e 100644 --- a/src/ccache/argprocessing.cpp +++ b/src/ccache/argprocessing.cpp @@ -591,7 +591,7 @@ process_option_arg(const Context& ctx, } // We must have -c. - if (arg == "-c") { + if (arg == "-c" || arg == "--compile") { state.found_c_opt = true; return Statistic::none; }