aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-01 15:59:38 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-01 15:59:38 +0200
commit405bf7cd5549edd1f718fce2b53f845dde6fe690 (patch)
tree9968951309a29d38fb313b95702119285d02106d /src/main.cpp
parent349a34cb1ae1e37f791aaf44dc0a298aff4e1e78 (diff)
Also clean up .dSym on Darwin
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b0f839509..af321258c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3890,12 +3890,14 @@ end_of_code_gen:;
char const *filename = cast(char const *)exe_name.text;
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));
+ if (build_context.ODIN_DEBUG) {
+ if (build_context.metrics.os == TargetOs_windows || build_context.metrics.os == TargetOs_darwin) {
+ String symbol_path = path_to_string(heap_allocator(), build_context.build_paths[BuildPath_Symbols]);
+ defer (gb_free(heap_allocator(), symbol_path.text));
- filename = cast(char const *)pdb_path.text;
- gb_file_remove(filename);
+ filename = cast(char const *)symbol_path.text;
+ gb_file_remove(filename);
+ }
}
}
}