X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fccanlint%2Ftests%2Fobjects_build_without_features.c;h=477d3025ce3aaa2cabd3337c87e9bc2b09402f58;hb=35f198de1851a7d57064546b7ced677b6fabee27;hp=f30bde4ed52f110b0cbd2144144dc1798628012a;hpb=b401a01a30118cf3f89071f455b56136a2ad81d7;p=ccan diff --git a/tools/ccanlint/tests/objects_build_without_features.c b/tools/ccanlint/tests/objects_build_without_features.c index f30bde4e..477d3025 100644 --- a/tools/ccanlint/tests/objects_build_without_features.c +++ b/tools/ccanlint/tests/objects_build_without_features.c @@ -1,5 +1,6 @@ #include #include +#include "reduce_features.h" #include "../compulsory_tests/build.h" static void check_objs_build_without_features(struct manifest *m, @@ -7,8 +8,9 @@ static void check_objs_build_without_features(struct manifest *m, 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 = {