compiled = temp_file(ctx, "", "info");
if (compile_and_link(ctx, info_c_file, find_ccan_dir(dir), "",
- CCAN_COMPILER, CCAN_CFLAGS " -I.", "",
- compiled, &output))
+ compiler, cflags, "", compiled, &output))
return compiled;
return NULL;
}
unsigned int i;
deps = get_one(ctx, dir, style, get_info);
+ if (!deps)
+ return NULL;
for (i = 0; i < tal_count(deps)-1; i++) {
char **newdeps;
unsigned int j;