The shell wrapper for "distcc-pump" outputs some useless progress
information to stdout. Let it do that without failing the compile.
}
}
+static bool
+compiler_is_pump(struct args *args)
+{
+ char *name = basename(args->argv[0]);
+ bool result = str_eq(name, "pump") || str_eq(name, "distcc-pump");
+ free(name);
+ return result;
+}
+
// Run the real compiler and put the result in cache.
static void
to_cache(struct args *args)
}
failed();
}
- if (st.st_size != 0) {
+ // distcc-pump outputs lines like "__________Using # distcc servers in pump mode"
+ if (st.st_size != 0 && !compiler_is_pump(args)) {
cc_log("Compiler produced stdout");
stats_update(STATS_STDOUT);
tmp_unlink(tmp_stdout);