1 #include <tools/ccanlint/ccanlint.h>
2 #include <tools/tools.h>
3 #include <ccan/talloc/talloc.h>
4 #include <ccan/str/str.h>
17 static const char *can_build(struct manifest *m)
20 return "Safe mode enabled";
24 static void *check_objs_build(struct manifest *m)
29 list_for_each(&m->c_files, i, list) {
32 /* One point for each obj file. */
33 build_objs.total_score++;
35 i->compiled = compile_object(m, i->name, &err);
38 report = talloc_append_string(report, err);
46 static const char *describe_objs_build(struct manifest *m, void *check_result)
51 struct ccanlint build_objs = {
52 .name = "Module object files can be built",
53 .check = check_objs_build,
54 .describe = describe_objs_build,
58 REGISTER_TEST(build_objs, &depends_exist, NULL);