]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/objects_build_without_features.c
ccanlint: clean up reduced feature handling.
[ccan] / tools / ccanlint / tests / objects_build_without_features.c
index 8174541cd51271680dcff50d9a123489fdf73b33..477d3025ce3aaa2cabd3337c87e9bc2b09402f58 100644 (file)
@@ -1,5 +1,6 @@
 #include <tools/ccanlint/ccanlint.h>
 #include <ccan/talloc/talloc.h>
+#include "reduce_features.h"
 #include "../compulsory_tests/build.h"
 
 static void check_objs_build_without_features(struct manifest *m,
@@ -7,7 +8,8 @@ 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);
+       const char *flags = talloc_asprintf(score, "%s %s",
+                                           REDUCE_FEATURES_FLAGS, cflags);
        build_objects(m, keep, score, flags, COMPILE_NOFEAT);
 }