]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Bail out on too hard compiler options -fdump-*
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Nov 2010 10:37:42 +0000 (11:37 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Nov 2010 10:37:42 +0000 (11:37 +0100)
ccache.c

index 4932e6131a3117d3d55fc0d13cd5e82a6c5553da..900146d6dc412a9d880031a5a291ed3e74333c6a 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1238,7 +1238,9 @@ cc_process_args(struct args *orig_args, struct args **preprocessor_args,
                }
 
                /* These are always too hard. */
-               if (compopt_too_hard(argv[i]) || str_startswith(argv[i], "@")) {
+               if (compopt_too_hard(argv[i])
+                   || str_startswith(argv[i], "@")
+                   || str_startswith(argv[i], "-fdump-")) {
                        cc_log("Compiler option %s is unsupported", argv[i]);
                        stats_update(STATS_UNSUPPORTED);
                        result = false;