]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/depends_exist.c
tools: more intelligent caching for compile _info.
[ccan] / tools / ccanlint / tests / depends_exist.c
index ff67857f8cdc5a98a89c00e8d948e6e12a6dff87..7712c48d1847738e903200bbd2dc9c106e09750d 100644 (file)
@@ -35,7 +35,6 @@ static bool add_dep(struct manifest *m, const char *dep, struct score *score)
 
 /* FIXME: check this is still true once we reduce features. */
 static void check_depends_exist(struct manifest *m,
-                               bool keep,
                                unsigned int *timeleft, struct score *score)
 {
        unsigned int i;
@@ -58,8 +57,7 @@ static void check_depends_exist(struct manifest *m,
        if (safe_mode)
                deps = get_safe_ccan_deps(m, m->dir, true);
        else
-               deps = get_deps(m, m->dir, true,
-                               &m->info_file->compiled[COMPILE_NORMAL]);
+               deps = get_deps(m, m->dir, true, get_or_compile_info);
 
        for (i = 0; deps[i]; i++) {
                if (!strstarts(deps[i], "ccan/"))