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