- cfile->compiled[ctype] = maybe_temp_file(m, ".o", keep, cfile->fullname);
+ cfile->compiled[ctype] = temp_file(m, ".o", cfile->fullname);
return compile_object(m, cfile->fullname, ccan_dir, compiler, flags,
cfile->compiled[ctype], output);
}
static void compile_test_helpers(struct manifest *m,
return compile_object(m, cfile->fullname, ccan_dir, compiler, flags,
cfile->compiled[ctype], output);
}
static void compile_test_helpers(struct manifest *m,
- if (!compile(m, keep, i, flags, ctype, &cmdout)) {
+ if (!compile(m, i, flags, ctype, &cmdout)) {
errors = true;
score_file_error(score, i, 0, "Compile failed:\n%s",
cmdout);
errors = true;
score_file_error(score, i, 0, "Compile failed:\n%s",
cmdout);
- compile_test_helpers(m, keep, timeleft, score, cflags,
- COMPILE_NORMAL);
+ compile_test_helpers(m, timeleft, score, cflags, COMPILE_NORMAL);
- flags = talloc_asprintf(score, "%s -I.", cflags);
+ flags = talloc_asprintf(score, "%s %s", cflags,
+ REDUCE_FEATURES_FLAGS);
- compile_test_helpers(m, keep, timeleft, score, flags,
- COMPILE_NOFEAT);
+ compile_test_helpers(m, timeleft, score, flags, COMPILE_NOFEAT);