]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove .ic extension and cuda/cuda-output languages
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 31 Jul 2019 19:06:21 +0000 (21:06 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 31 Jul 2019 19:18:55 +0000 (21:18 +0200)
CUDA/NVCC, at least not version 10.1, does not recognize “.ic” as a
valid extension and neither “cuda” nor “cuda-output” as languages.

Also made sure to compare with “cu” instead of “cuda” when detecting
whether to force run_second_cpp.

src/ccache.c
src/language.c

index d87c53b9fadf24aa9d474192cd6ea5df1729eed4..ac3abb31ac39879990fc68f26dd9834d44c47eac 100644 (file)
@@ -3183,7 +3183,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
                goto out;
        }
 
-       if (!conf->run_second_cpp && str_eq(actual_language, "cuda")) {
+       if (!conf->run_second_cpp && str_eq(actual_language, "cu")) {
                cc_log("Using CUDA compiler; not compiling preprocessed code");
                conf->run_second_cpp = true;
        }
index 7a3404dd6f432245a8c0220e5a60e1a85f9d2433..1dbf962085f011e1f03500a0e96d5be54f49684e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2018 Joel Rosdahl and other contributors
+// Copyright (C) 2010-2019 Joel Rosdahl and other contributors
 //
 // See doc/AUTHORS.adoc for a complete list of contributors.
 //
@@ -64,8 +64,7 @@ static const struct {
        {".HXX", "c++-header"},
        {".tcc", "c++-header"},
        {".TCC", "c++-header"},
-       {".cu",  "cuda"},
-       {".ic",  "cuda-output"},
+       {".cu",  "cu"},
        {NULL,  NULL}
 };
 
@@ -80,6 +79,7 @@ static const struct {
        {"c++",                      "c++-cpp-output"},
        {"c++-cpp-output",           "c++-cpp-output"},
        {"c++-header",               "c++-cpp-output"},
+       {"cu",                       "cpp-output"},
        {"objective-c",              "objective-c-cpp-output"},
        {"objective-c-header",       "objective-c-cpp-output"},
        {"objc-cpp-output",          "objective-c-cpp-output"},
@@ -88,8 +88,6 @@ static const struct {
        {"objc++-cpp-output",        "objective-c++-cpp-output"},
        {"objective-c++-header",     "objective-c++-cpp-output"},
        {"objective-c++-cpp-output", "objective-c++-cpp-output"},
-       {"cu"  ,                     "cuda-output"},
-       {"cuda",                     "cuda-output"},
        {"assembler-with-cpp",       "assembler"},
        {"assembler",                "assembler"},
        {NULL,  NULL}