-static void *check_objs_build(struct manifest *m,
- bool keep, unsigned int *timeleft)
+static void check_objs_build(struct manifest *m,
+ bool keep,
+ unsigned int *timeleft, struct score *score)
char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, i->name);
char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, i->name);
i->compiled = maybe_temp_file(m, "", keep, fullfile);
i->compiled = maybe_temp_file(m, "", keep, fullfile);
- err = compile_object(m, fullfile, ccan_dir, "", i->compiled);
- if (err) {
+ if (!compile_object(m, fullfile, ccan_dir, "", i->compiled,
+ &output)) {
- if (report)
- report = talloc_append_string(report, err);
- else
- report = err;
+ score->error = "Compiling object files";
+ score_file_error(score, i, 0, output);
}
struct ccanlint build_objs = {
.key = "build-objects",
.name = "Module object files can be built",
.check = check_objs_build,
}
struct ccanlint build_objs = {
.key = "build-objects",
.name = "Module object files can be built",
.check = check_objs_build,