summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-03-17 22:12:22 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-03-17 22:12:22 +1030
commita1d048552e7c9cbd07092cefb87204563a807608 (patch)
tree0fdf354f1a62cb7f6b9882e39287046f3a24a420
parent298dc1222201440ccfbf39f59a68b37aa910ff0c (diff)
ccanlint: don't ever used pre-built modules as dependencies.
They're often out-of-date, and we're about to do special things to the str module compile flags, so we don't *ever* want the default. It doesn't add much to build times, and it eliminates a nasty source of weird errors.
-rw-r--r--tools/ccanlint/compulsory_tests/depends_build.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/ccanlint/compulsory_tests/depends_build.c b/tools/ccanlint/compulsory_tests/depends_build.c
index 00f75b37..8bce5544 100644
--- a/tools/ccanlint/compulsory_tests/depends_build.c
+++ b/tools/ccanlint/compulsory_tests/depends_build.c
@@ -53,7 +53,6 @@ static char *build_subdir_objs(struct manifest *m)
char *build_submodule(struct manifest *m)
{
char *errstr;
- struct stat st;
if (m->compiled)
return NULL;
@@ -61,10 +60,6 @@ char *build_submodule(struct manifest *m)
if (!expect_obj_file(m))
return NULL;
- m->compiled = talloc_asprintf(m, "%s.o", m->dir);
- if (stat(m->compiled, &st) == 0)
- return NULL;
-
if (verbose >= 2)
printf(" Building dependency %s\n", m->dir);