ccanlint: fix error with --target=build
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Dec 2010 08:23:14 +0000 (18:53 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Dec 2010 08:23:14 +0000 (18:53 +1030)
It requires that we build the objects first.

tools/ccanlint/compulsory_tests/build.c
tools/ccanlint/compulsory_tests/check_build.c

index 21fbdcdee80e6bb8e29258f867f94656dc2d4b69..fee79b10c82499574482e2f5913258e19d9107fd 100644 (file)
@@ -80,4 +80,4 @@ struct ccanlint build = {
        .can_run = can_build,
 };
 
        .can_run = can_build,
 };
 
-REGISTER_TEST(build, &depends_built, &build_objs, NULL);
+REGISTER_TEST(build, &build_objs, NULL);
index 8cd9ed8649bd106e3a9a18db957cb8f05f5652b3..b7935f015d6982aa0fca24d9ba4b03585ca1c54f 100644 (file)
@@ -90,4 +90,4 @@ struct ccanlint check_build = {
        .can_run = can_build,
 };
 
        .can_run = can_build,
 };
 
-REGISTER_TEST(check_build, &build, NULL);
+REGISTER_TEST(check_build, &build, &depends_built, NULL);