From: Joel Rosdahl Date: Tue, 5 May 2020 18:31:24 +0000 (+0200) Subject: Handle Intel compiler option “-xHost” correctly X-Git-Tag: v4.0~497 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1073151532cbbd839aa3ed383a8712b1959ee81f;p=thirdparty%2Fccache.git Handle Intel compiler option “-xHost” correctly Fixes #587. --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index aa2a28534..2934be0c5 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -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")) {