Skip to content

Commit f02ccc2

Browse files
committed
cswrap-core: bypass the analyzer when invoked with -MM
This brings significant speedup while processing the %install script of xfsprogs-5.12.0-4.el9 with csmock-plugin-clang enabled.
1 parent 8e9af70 commit f02ccc2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/cswrap-core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ static int translate_args_for_analyzer(int argc, char **argv)
237237
/* preprocessing --> bypass analyzer in order to not break ccache */
238238
return -1;
239239

240+
if (STREQ(arg, "-MM"))
241+
/* tracking includes --> bypass the analyzer to save resources */
242+
return -1;
243+
240244
if (is_def_inc(arg)) {
241245
if (is_bare_def_inc(arg))
242246
/* bare -D or -I --> we need to take the next arg, too */

0 commit comments

Comments
 (0)