From: Joel Rosdahl Date: Sun, 11 Feb 2024 15:26:03 +0000 (+0100) Subject: fix: Mark -fcallgraph-info as too hard X-Git-Tag: v4.10~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c29cbc4f4995a2b78bc1ef43f81679de9abc0b9;p=thirdparty%2Fccache.git fix: Mark -fcallgraph-info as too hard -fcallgraph-info generates a .ci file which ccache currently doesn't know how to store and restore. Fixes #1400. --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index 719c0434..97f64934 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -417,6 +417,7 @@ process_option_arg(const Context& ctx, // These are always too hard. if (compopt_too_hard(arg) || util::starts_with(arg, "-fdump-") + || util::starts_with(arg, "-fcallgraph-info=") || util::starts_with(arg, "-MJ") || util::starts_with(arg, "--config-system-dir=") || util::starts_with(arg, "--config-user-dir=")) { diff --git a/src/compopt.cpp b/src/compopt.cpp index 9f1d603a..fca92452 100644 --- a/src/compopt.cpp +++ b/src/compopt.cpp @@ -122,6 +122,7 @@ const CompOpt compopts[] = { {"-emit-pth", AFFECTS_COMP}, // Clang {"-external:I", AFFECTS_CPP | TAKES_ARG | TAKES_CONCAT_ARG | TAKES_PATH}, // msvc + {"-fcallgraph-info", TOO_HARD}, {"-fmodule-header", TOO_HARD}, {"-fmodules-ts", TOO_HARD}, {"-fno-working-directory", AFFECTS_CPP},