+static void compile_async(const void *ctx,
+ struct manifest *m,
+ struct ccan_file *file,
+ bool link_with_module,
+ bool keep,
+ enum compile_type ctype,
+ unsigned int time_ms)
+{
+ char *flags;
+
+ file->compiled[ctype] = maybe_temp_file(ctx, "", keep, file->fullname);
+ flags = talloc_asprintf(ctx, "%s%s",
+ cflags,
+ ctype == COMPILE_NOFEAT
+ ? " "REDUCE_FEATURES_FLAGS : "");
+
+ compile_and_link_async(file, time_ms, file->fullname, ccan_dir,
+ test_obj_list(m, link_with_module, ctype, ctype),
+ compiler, flags, lib_list(m, ctype),
+ file->compiled[ctype]);
+}
+