From: Joel Rosdahl Date: Wed, 23 Apr 2025 18:20:33 +0000 (+0200) Subject: fix: Don't swallow -Xpreprocessor -fopenmp X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5da23a2410e2790beec34ec80c02ff1b4b5b690f;p=thirdparty%2Fccache.git fix: Don't swallow -Xpreprocessor -fopenmp This fixes regression in bea737780727e751a8193fc80c83c7c072b8048e Fixes #1586. --- diff --git a/src/ccache/argprocessing.cpp b/src/ccache/argprocessing.cpp index 0293b1f7..2cca1887 100644 --- a/src/ccache/argprocessing.cpp +++ b/src/ccache/argprocessing.cpp @@ -463,10 +463,7 @@ process_option_arg(const Context& ctx, LOG("Missing argument to {}", args[i]); return Statistic::bad_compiler_arguments; } - if (args[i + 1] == "-fopenmp") { - ++i; - return Statistic::none; - } else { + if (args[i + 1] != "-fopenmp") { LOG("Unsupported compiler option for direct mode: {} {}", args[i], args[i + 1]);