char **output)
{
cfile->compiled = maybe_temp_file(m, ".o", keep, cfile->fullname);
- return compile_object(m, cfile->fullname, ccan_dir, "",
+ return compile_object(m, cfile->fullname, ccan_dir, compiler, cflags,
cfile->compiled, output);
}
if (!compile(m, keep, i, &cmdout)) {
errors = true;
- score->error = "Failed to compile helper C files";
- score_file_error(score, i, 0, cmdout);
+ score_file_error(score, i, 0, "Compile failed:\n%s",
+ cmdout);
} else if (!streq(cmdout, "")) {
warnings = true;
- score->error = "Helper C files gave warnings";
- score_file_error(score, i, 0, cmdout);
+ score_file_error(score, i, 0,
+ "Compile gave warnings:\n%s", cmdout);
}
}