mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
Also delete .pdb unless -keep-executable is supplied
This commit is contained in:
@@ -3889,6 +3889,14 @@ end_of_code_gen:;
|
|||||||
if (!build_context.keep_executable) {
|
if (!build_context.keep_executable) {
|
||||||
char const *filename = cast(char const *)exe_name.text;
|
char const *filename = cast(char const *)exe_name.text;
|
||||||
gb_file_remove(filename);
|
gb_file_remove(filename);
|
||||||
|
|
||||||
|
if (build_context.metrics.os == TargetOs_windows && build_context.ODIN_DEBUG) {
|
||||||
|
String pdb_path = path_to_string(heap_allocator(), build_context.build_paths[BuildPath_PDB]);
|
||||||
|
defer (gb_free(heap_allocator(), pdb_path.text));
|
||||||
|
|
||||||
|
filename = cast(char const *)pdb_path.text;
|
||||||
|
gb_file_remove(filename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user