- objfile = talloc_asprintf(m, "%s.o", i->fullname);
- if (stat(objfile, &st) != 0) {
- report = talloc_asprintf_append(report,
- "object file %s\n",
- objfile);
- } else {
- struct ccan_file *f = new_ccan_file(m, "", objfile);
- list_add_tail(&m->dep_objs, &f->list);
- }
-
+ i->compiled = talloc_asprintf(i, "%s.o", i->fullname);
+ if (stat(i->compiled, &st) != 0) {
+ score->error = "Dependencies are not built";
+ score_file_error(score, i, 0,
+ talloc_asprintf(score,
+ "object file %s",
+ i->compiled));
+ i->compiled = NULL;
+ }