fix docgen tests

This commit is contained in:
Andrew Kelley
2018-09-11 16:52:50 -04:00
parent 4af844732a
commit 15c67d2d50
2 changed files with 9 additions and 0 deletions

View File

@@ -8122,6 +8122,8 @@ static void resolve_out_paths(CodeGen *g) {
if (g->enable_cache || g->out_type != OutTypeObj) {
os_path_join(&g->artifact_dir, o_basename, &g->o_file_output_path);
} else if (g->wanted_output_file_path != nullptr && g->out_type == OutTypeObj) {
buf_init_from_buf(&g->o_file_output_path, g->wanted_output_file_path);
} else {
buf_init_from_buf(&g->o_file_output_path, o_basename);
}