]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat: Support NVCC --compile option (#1475)
authorLaurent Bouhier <laurent.bouhier@gmail.com>
Sun, 30 Jun 2024 12:42:11 +0000 (14:42 +0200)
committerGitHub <noreply@github.com>
Sun, 30 Jun 2024 12:42:11 +0000 (14:42 +0200)
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!)

src/ccache/argprocessing.cpp

index ae74e522dab0a93791f7da8961e0a889fed84384..a5e2e24e772e2da2d1bde670c55458bfad3ce9f1 100644 (file)
@@ -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;
   }