- i->compiled = compile_object(m, i->name, &err);
- if (!i->compiled) {
- if (report)
- report = talloc_append_string(report, err);
- else
- report = err;
+ i->compiled = maybe_temp_file(m, "", keep, fullfile);
+ if (!compile_object(score, fullfile, ccan_dir, "", i->compiled,
+ &output)) {
+ talloc_free(i->compiled);
+ score->error = "Compiling object files";
+ score_file_error(score, i, 0, output);
+ errors = true;
+ } else if (!streq(output, "")) {
+ score->error = "Compiling object files gave warnings";
+ score_file_error(score, i, 0, output);
+ warnings = true;