diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2018-06-03 16:35:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-03 16:35:43 +0100 |
| commit | 360a74e2fe981a47aa3948676890ef013039421d (patch) | |
| tree | 8b97c4ddb689edea23cd73e05662472736b7b39c /src/main.cpp | |
| parent | 106302189c3a49282a513d47f84d05ce6285af75 (diff) | |
| parent | 597c4591bce93edfd9c3740360c149f51941f6dc (diff) | |
Merge pull request #226 from BrettRToomey/packages
Dsymutil fixes
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9e9c6e6f0..1f8be7b91 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1062,6 +1062,21 @@ int main(int arg_count, char **arg_ptr) { return exit_code; } + #if defined(GB_SYSTEM_OSX) + if (BuildFlag_Debug) { + // NOTE: macOS links DWARF symbols dynamically. Dsymutil will map the stubs in the exe + // to the symbols in the object file + exit_code = system_exec_command_line_app("dsymutil", true, + "%.*s%s", LIT(output_base), output_ext + ); + + if (exit_code != 0) { + return exit_code; + } + } + #endif + + if (build_context.show_timings) { show_timings(&checker, &timings); } |