]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/compile_tests.c
ccanlint: make sure fullname is always full path name.
[ccan] / tools / ccanlint / compulsory_tests / compile_tests.c
index 89ba29b9b57c8b76083cab49697154ff645002a9..c6527ed51a2fbc5145e07b8288211ced9373f57a 100644 (file)
@@ -40,8 +40,10 @@ static char *obj_list(const struct manifest *m, bool link_with_module)
                list = talloc_asprintf_append(list, " %s.o", m->dir);
 
        /* Other ccan modules. */
-       list_for_each(&m->dep_objs, i, list)
-               list = talloc_asprintf_append(list, " %s", i->name);
+       list_for_each(&m->dep_dirs, i, list) {
+               if (i->compiled)
+                       list = talloc_asprintf_append(list, " %s", i->compiled);
+       }
 
        return list;
 }
@@ -80,7 +82,7 @@ struct compile_tests_result {
        const char *output;
 };
 
-static void *do_compile_tests(struct manifest *m)
+static void *do_compile_tests(struct manifest *m, unsigned int *timeleft)
 {
        struct list_head *list = talloc(m, struct list_head);
        char *cmdout;