X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fobjects_build_without_features.c;h=770dd475a3a6583ce1f60f9b804afb80cac37a58;hp=f30bde4ed52f110b0cbd2144144dc1798628012a;hb=4c6f5a73a0817641571fad7383ec3604487889f8;hpb=b401a01a30118cf3f89071f455b56136a2ad81d7 diff --git a/tools/ccanlint/tests/objects_build_without_features.c b/tools/ccanlint/tests/objects_build_without_features.c index f30bde4e..770dd475 100644 --- a/tools/ccanlint/tests/objects_build_without_features.c +++ b/tools/ccanlint/tests/objects_build_without_features.c @@ -1,14 +1,16 @@ #include #include -#include "../compulsory_tests/build.h" +#include "reduce_features.h" +#include "build.h" static void check_objs_build_without_features(struct manifest *m, bool keep, unsigned int *timeleft, struct score *score) { - const char *flags = talloc_asprintf(score, "-I. %s", cflags); - build_objects(m, keep, score, flags); + const char *flags = talloc_asprintf(score, "%s %s", + REDUCE_FEATURES_FLAGS, cflags); + build_objects(m, keep, score, flags, COMPILE_NOFEAT); } struct ccanlint objects_build_without_features = {