]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don't use compiler error/status, but disable
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Sat, 25 Aug 2018 18:19:38 +0000 (20:19 +0200)
committerAnders F Björklund <anders.f.bjorklund@gmail.com>
Sat, 25 Aug 2018 18:20:34 +0000 (20:20 +0200)
src/ccache.c

index 0a1392408c0feb22cd85bb639a021c975c13979e..90c7213ccd7a71f15d21da82a57f5b6c83b94876 100644 (file)
@@ -3460,10 +3460,9 @@ ccache(int argc, char *argv[])
                failed();
        }
 
-       // FIXME?: for now fail hard when we find mismatching settings
        if (conf->depend_mode && (!generating_dependencies || !conf->run_second_cpp)) {
-               fprintf(stderr, "ccache: ERROR: depend_mode but not generating dependencies or run_second_cpp\n");
-               x_exit(1);
+               cc_log("Disabling depend mode");
+               conf->depend_mode = false;
        }
 
        cc_log("Source file: %s", input_file);