]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/depends_exist.c
ccanlint: keep separate array of compiled versions.
[ccan] / tools / ccanlint / compulsory_tests / depends_exist.c
index a90a7196e6172adabdabef1ea799baf3211b678c..c283f2a4b11b7b3919c60504ef452b9daded22da 100644 (file)
@@ -33,6 +33,7 @@ static bool add_dep(struct manifest *m, const char *dep, struct score *score)
        return true;
 }
 
+/* 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)
@@ -47,7 +48,8 @@ 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);
+               deps = get_deps(m, m->dir, true,
+                               &m->info_file->compiled[COMPILE_NORMAL]);
 
        for (i = 0; deps[i]; i++) {
                if (!strstarts(deps[i], "ccan/"))