]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Don't swallow -Xpreprocessor -fopenmp
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 23 Apr 2025 18:20:33 +0000 (20:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 23 Apr 2025 18:33:29 +0000 (20:33 +0200)
This fixes regression in bea737780727e751a8193fc80c83c7c072b8048e

Fixes #1586.

src/ccache/argprocessing.cpp

index 0293b1f73ceee3673dc5f8d6a40206eb37d8cca0..2cca1887d27868f23e4cfa5dacc93f6f0faec2e6 100644 (file)
@@ -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]);