]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add back support for the “cuda” language
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 2 Aug 2019 18:20:46 +0000 (20:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 2 Aug 2019 18:21:17 +0000 (20:21 +0200)
Clang apparently recognizes it.

Related to PR #381.

src/ccache.c
src/language.c

index ac3abb31ac39879990fc68f26dd9834d44c47eac..0b96b56a060ab827698215f5377913989a04190a 100644 (file)
@@ -3183,7 +3183,8 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
                goto out;
        }
 
-       if (!conf->run_second_cpp && str_eq(actual_language, "cu")) {
+       if (!conf->run_second_cpp
+           && (str_eq(actual_language, "cu") || str_eq(actual_language, "cuda"))) {
                cc_log("Using CUDA compiler; not compiling preprocessed code");
                conf->run_second_cpp = true;
        }
index 1dbf962085f011e1f03500a0e96d5be54f49684e..d6a67b312332d34459a6b8c5ec74c3180b6717fe 100644 (file)
@@ -80,6 +80,7 @@ static const struct {
        {"c++-cpp-output",           "c++-cpp-output"},
        {"c++-header",               "c++-cpp-output"},
        {"cu",                       "cpp-output"},
+       {"cuda",                     "cpp-output"},
        {"objective-c",              "objective-c-cpp-output"},
        {"objective-c-header",       "objective-c-cpp-output"},
        {"objc-cpp-output",          "objective-c-cpp-output"},