objects_build_without_features.c 683 B

12345678910111213141516171819202122
  1. #include <tools/ccanlint/ccanlint.h>
  2. #include <ccan/tal/str/str.h>
  3. #include "reduce_features.h"
  4. #include "build.h"
  5. static void check_objs_build_without_features(struct manifest *m,
  6. unsigned int *timeleft,
  7. struct score *score)
  8. {
  9. const char *flags = tal_fmt(score, "%s %s",
  10. REDUCE_FEATURES_FLAGS, cflags);
  11. build_objects(m, score, flags, COMPILE_NOFEAT);
  12. }
  13. struct ccanlint objects_build_without_features = {
  14. .key = "objects_build_without_features",
  15. .name = "Module object files can be built (without features)",
  16. .check = check_objs_build_without_features,
  17. .needs = "reduce_features objects_build"
  18. };
  19. REGISTER_TEST(objects_build_without_features);