]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Bail out on too hard options -fmodules-ts and -fmodule-header
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 4 Oct 2023 16:13:52 +0000 (18:13 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 4 Oct 2023 16:13:52 +0000 (18:13 +0200)
Fixes #1333.

src/compopt.cpp

index 86a6cbb1e1162ed592e7e68cda5952f3c1a5143f..f904261b4d38a6b8c6abb16f06cc6c451967ad38 100644 (file)
@@ -110,6 +110,8 @@ const CompOpt compopts[] = {
   {"-emit-pth", AFFECTS_COMP},         // Clang
   {"-external:I",
    AFFECTS_CPP | TAKES_ARG | TAKES_CONCAT_ARG | TAKES_PATH}, // msvc
+  {"-fmodule-header", TOO_HARD},
+  {"-fmodules-ts", TOO_HARD},
   {"-fno-working-directory", AFFECTS_CPP},
   {"-fplugin=libcc1plugin", TOO_HARD}, // interaction with GDB
   {"-frepo", TOO_HARD},