Skip to content

Commit

Permalink
output .lib file if available (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy authored Mar 29, 2023
1 parent bd8313a commit dbf319f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions runtime_compile/runtime_compile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,18 @@ static void msvc_runtime_compile(
});
}
}

auto temp_lib_out = fs::path{temp_out}.replace_extension("lib");
if(fs::exists(temp_lib_out)) {
auto lib_out = fs::path{options.output_path}.replace_extension("lib");
fs::rename(temp_lib_out, lib_out, ec);
if(ec) {
options.reporter.report(ecsact_rtb::warning_message{
.content = "Moving " + temp_lib_out.string() + " to " +
lib_out.string() + " failed. " + ec.message(),
});
}
}
}

static void clang_runtime_compile(
Expand Down

0 comments on commit dbf319f

Please sign in to comment.