X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.c;h=237e412817d8f99ff44d9e68afeed050365d89b6;hb=2c148ec2ad0459d29ba19ec5b1c5515717cc8d80;hp=f06f200b8daf0017ebe68fc655ac393747e7cbf6;hpb=0fe2d094b262f6e8bed798930e8c4716d33d5dc7;p=ccan diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index f06f200b..237e4128 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -616,6 +616,7 @@ int main(int argc, char *argv[]) char *cwd = path_cwd(NULL), *dir; struct ccanlint top; /* cannot_run may try to set ->can_run */ const char *override_compiler = NULL, *override_cflags = NULL; + const char *override_gcov = NULL; /* Empty graph node to which we attach everything else. */ dgraph_init_node(&top.node); @@ -644,6 +645,8 @@ int main(int argc, char *argv[]) NULL, &override_compiler, "set the compiler"); opt_register_arg("--cflags ", opt_set_const_charp, NULL, &override_cflags, "set the compiler flags"); + opt_register_arg("--gcov ", opt_set_const_charp, + NULL, &override_gcov, "set the coverage tool"); opt_register_noarg("--deps-fail-ignore", opt_set_bool, &deps_fail_ignore, "don't fail if external dependencies are missing"); @@ -688,6 +691,8 @@ int main(int argc, char *argv[]) cflags = override_cflags; if (override_compiler) compiler = override_compiler; + if (override_gcov) + gcov = override_gcov; if (argc == 1) pass = test_module(&top.node, cwd, "",