mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #2330
This commit is contained in:
@@ -1835,6 +1835,17 @@ gb_internal void show_timings(Checker *c, Timings *t) {
|
|||||||
gb_internal void remove_temp_files(lbGenerator *gen) {
|
gb_internal void remove_temp_files(lbGenerator *gen) {
|
||||||
if (build_context.keep_temp_files) return;
|
if (build_context.keep_temp_files) return;
|
||||||
|
|
||||||
|
switch (build_context.build_mode) {
|
||||||
|
case BuildMode_Executable:
|
||||||
|
case BuildMode_DynamicLibrary:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case BuildMode_Object:
|
||||||
|
case BuildMode_Assembly:
|
||||||
|
case BuildMode_LLVM_IR:
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
TIME_SECTION("remove keep temp files");
|
TIME_SECTION("remove keep temp files");
|
||||||
|
|
||||||
for (String const &path : gen->output_temp_paths) {
|
for (String const &path : gen->output_temp_paths) {
|
||||||
|
|||||||
Reference in New Issue
Block a user