objects_build_without_features.c 722 B

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