mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 14:23:43 +00:00
Fix #2330
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -1835,6 +1835,17 @@ gb_internal void show_timings(Checker *c, Timings *t) {
|
||||
gb_internal void remove_temp_files(lbGenerator *gen) {
|
||||
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");
|
||||
|
||||
for (String const &path : gen->output_temp_paths) {
|
||||
|
||||
Reference in New Issue
Block a user