]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Handle Intel compiler option “-xHost” correctly
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 5 May 2020 18:31:24 +0000 (20:31 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 21 Jul 2020 13:06:32 +0000 (15:06 +0200)
Fixes #587.

(cherry picked from commit 1073151532cbbd839aa3ed383a8712b1959ee81f)

src/ccache.c

index d4f35b989ea35eaa3f058b8e370d7b02bccc1959..c23d2f31a1a67fe6882dd471cd030bd64be00e3e 100644 (file)
@@ -2892,6 +2892,13 @@ cc_process_args(struct args *args,
                        continue;
                }
 
+               if (str_eq(argv[i], "-xHost")) {
+                       // -xHost is an ordinary Intel compiler option, not a language
+                       // specification.
+                       args_add(common_args, argv[i]);
+                       continue;
+               }
+
                // Special handling for -x: remember the last specified language before the
                // input file and strip all -x options from the arguments.
                if (str_eq(argv[i], "-x")) {