X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fcompulsory_tests%2Fcompile_test_helpers.c;h=fc88b1b0e7bca75b429256d59773354b5831b92f;hb=354c772e913d137034d5bcd00efdcb880697532e;hp=de8d4632c9fbea9aa9ff992a2b0a0eb78a879d91;hpb=5f44c8ca0eb66503db51e0df1b65ff173eb42f57;p=ccan diff --git a/tools/ccanlint/compulsory_tests/compile_test_helpers.c b/tools/ccanlint/compulsory_tests/compile_test_helpers.c index de8d4632..fc88b1b0 100644 --- a/tools/ccanlint/compulsory_tests/compile_test_helpers.c +++ b/tools/ccanlint/compulsory_tests/compile_test_helpers.c @@ -24,8 +24,9 @@ static const char *can_build(struct manifest *m) static char *compile(struct manifest *m, struct ccan_file *cfile) { char *err; + char *fullfile = talloc_asprintf(m, "%s/%s", m->dir, cfile->name); - cfile->compiled = compile_object(m, cfile->name, &err); + cfile->compiled = compile_object(m, fullfile, ccan_dir, &err); if (cfile->compiled) return NULL; return err;