]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/objects_build_without_features.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / tools / ccanlint / tests / objects_build_without_features.c
index f30bde4ed52f110b0cbd2144144dc1798628012a..a32c0f6248346f1c63b7c643450a2c278e51f16f 100644 (file)
@@ -1,14 +1,15 @@
 #include <tools/ccanlint/ccanlint.h>
-#include <ccan/talloc/talloc.h>
-#include "../compulsory_tests/build.h"
+#include <ccan/tal/str/str.h>
+#include "reduce_features.h"
+#include "build.h"
 
 static void check_objs_build_without_features(struct manifest *m,
-                                             bool keep,
-                                             unsigned int *timeleft,
+                                             unsigned int *timeleft UNNEEDED,
                                              struct score *score)
 {
-       const char *flags = talloc_asprintf(score, "-I. %s", cflags);
-       build_objects(m, keep, score, flags);
+       const char *flags = tal_fmt(score, "%s %s",
+                                   REDUCE_FEATURES_FLAGS, cflags);
+       build_objects(m, score, flags, COMPILE_NOFEAT);
 }
 
 struct ccanlint objects_build_without_features = {