mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix remove_temp_files
This commit is contained in:
+9
-4
@@ -1565,10 +1565,15 @@ void remove_temp_files(lbGenerator *gen) {
|
|||||||
gb_file_remove(cast(char const *)path.text);
|
gb_file_remove(cast(char const *)path.text);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (build_context.build_mode != BuildMode_Object && !build_context.keep_object_files) {
|
if (!build_context.keep_object_files) {
|
||||||
for_array(i, gen->output_object_paths) {
|
switch (build_context.build_mode) {
|
||||||
String path = gen->output_object_paths[i];
|
case BuildMode_Executable:
|
||||||
gb_file_remove(cast(char const *)path.text);
|
case BuildMode_DynamicLibrary:
|
||||||
|
for_array(i, gen->output_object_paths) {
|
||||||
|
String path = gen->output_object_paths[i];
|
||||||
|
gb_file_remove(cast(char const *)path.text);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user