From 15c67d2d50aae11dd425ad2629ebc9770fb95f30 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 11 Sep 2018 16:52:50 -0400 Subject: fix docgen tests --- src/codegen.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index d1239eb23f..af42f324b4 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -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); } -- cgit v1.2.3