]> 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, 5 May 2020 18:31:24 +0000 (20:31 +0200)
Fixes #587.

src/argprocessing.cpp

index aa2a28534c209ca190974b52a2e2f808e3bb35ad..2934be0c5bc2becae9494b6db726aca43fcbe0f4 100644 (file)
@@ -357,6 +357,13 @@ process_arg(Context& ctx,
     return nullopt;
   }
 
+  if (str_eq(argv[i], "-xHost")) {
+    // -xHost is an ordinary Intel compiler option, not a language
+    // specification.
+    state.common_args.push_back(args[i]);
+    return nullopt;
+  }
+
   // 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")) {