- file->compiled[COMPILE_COVERAGE]
- = maybe_temp_file(ctx, "", keep, file->fullname);
- if (!compile_and_link(ctx, file->fullname, ccan_dir,
- test_obj_list(m, link_with_module,
- COMPILE_NORMAL,
- COMPILE_COVERAGE),
- compiler, flags,
- lib_list(m, COMPILE_NORMAL),
- file->compiled[COMPILE_COVERAGE], &output)) {
- talloc_free(file->compiled[COMPILE_COVERAGE]);
- file->compiled[COMPILE_COVERAGE] = NULL;
- return output;
- }
- talloc_free(output);
- return NULL;
+ file->compiled[COMPILE_COVERAGE] = temp_file(ctx, "", file->fullname);
+ compile_and_link_async(file, time_ms, file->fullname, ccan_dir,
+ test_obj_list(m, link_with_module,
+ COMPILE_NORMAL,
+ COMPILE_COVERAGE),
+ compiler, flags,
+ lib_list(m, COMPILE_NORMAL),
+ file->compiled[COMPILE_COVERAGE]);