From 5da23a2410e2790beec34ec80c02ff1b4b5b690f Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Wed, 23 Apr 2025 20:20:33 +0200 Subject: [PATCH] fix: Don't swallow -Xpreprocessor -fopenmp This fixes regression in bea737780727e751a8193fc80c83c7c072b8048e Fixes #1586. --- src/ccache/argprocessing.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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]); -- 2.47.2