- char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, i->name);
+ char *fullfile = tal_fmt(m, "%s/%s", m->dir, i->name);
char *output;
i->compiled[ctype] = temp_file(m, "", fullfile);
if (!compile_object(m, fullfile, ccan_dir, compiler, flags,
i->compiled[ctype], &output)) {
char *output;
i->compiled[ctype] = temp_file(m, "", fullfile);
if (!compile_object(m, fullfile, ccan_dir, compiler, flags,
i->compiled[ctype], &output)) {
static void check_depends_built(struct manifest *m,
unsigned int *timeleft, struct score *score)
{
static void check_depends_built(struct manifest *m,
unsigned int *timeleft, struct score *score)
{
- list_for_each(&m->deps, i, list) {
- char *errstr = build_submodule(i, cflags, COMPILE_NORMAL);
+ foreach_ptr(list, &m->deps, &m->test_deps) {
+ struct manifest *i;
+ list_for_each(list, i, list) {
+ char *errstr;
- if (errstr) {
- score->error = talloc_asprintf(score,
+ errstr = build_submodule(i, cflags, COMPILE_NORMAL);
+
+ if (errstr) {
+ score->error = tal_fmt(score,
.name = "Module's CCAN dependencies can be found or built",
.check = check_depends_built,
.can_run = can_build,
.name = "Module's CCAN dependencies can be found or built",
.check = check_depends_built,
.can_run = can_build,