]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/build.c
ccanlint: use familiar names for temporary files, show them with -vv.
[ccan] / tools / ccanlint / compulsory_tests / build.c
index 8b530131eb05b91711f81fd4c0060661a91b92b2..c78e500b238f4e0953e7084f46a36deba03c0f44 100644 (file)
@@ -33,7 +33,9 @@ static char *obj_list(const struct manifest *m)
        return list;
 }
 
-static void *do_build(struct manifest *m)
+static void *do_build(struct manifest *m,
+                     bool keep,
+                     unsigned int *timeleft)
 {
        char *filename, *err;
 
@@ -42,8 +44,8 @@ static void *do_build(struct manifest *m)
                build.total_score = 0;
                return NULL;
        }
-       filename = link_objects(m, obj_list(m), &err);
-       if (filename) {
+       filename = link_objects(m, m->basename, false, obj_list(m), &err);
+       if (filename && keep) {
                char *realname = talloc_asprintf(m, "%s.o", m->dir);
                /* We leave this object file around, all built. */
                if (!move_file(filename, realname))
@@ -63,7 +65,7 @@ static const char *describe_build(struct manifest *m, void *check_result)
 
 struct ccanlint build = {
        .key = "build",
-       .name = "Module can be built",
+       .name = "Module can be built from object files",
        .total_score = 1,
        .check = do_build,
        .describe = describe_build,