return NULL;
}
-static void *check_objs_build(struct manifest *m)
+static void *check_objs_build(struct manifest *m,
+ bool keep, unsigned int *timeleft)
{
char *report = NULL;
struct ccan_file *i;
/* One point for each obj file. */
build_objs.total_score++;
- i->compiled = compile_object(m, fullfile, ccan_dir, &err);
- if (!i->compiled) {
+ i->compiled = maybe_temp_file(m, "", keep, fullfile);
+ err = compile_object(m, fullfile, ccan_dir, "", i->compiled);
+ if (err) {
+ talloc_free(i->compiled);
if (report)
report = talloc_append_string(report, err);
else
}
struct ccanlint build_objs = {
- .key = "build-objs",
+ .key = "build-objects",
.name = "Module object files can be built",
.check = check_objs_build,
.describe = describe_objs_build,