diff options
| author | Brett R. Toomey <brto@nodes.dk> | 2018-06-03 17:12:30 +0200 |
|---|---|---|
| committer | Brett R. Toomey <brto@nodes.dk> | 2018-06-03 17:12:30 +0200 |
| commit | 80833ed703f81f6aa5bdfed42d5dbbacb77d06bf (patch) | |
| tree | 65fc67393425f555cfec515ef075613ddf5ec969 /src/main.cpp | |
| parent | d556fa2cd8570363a66a7d8a2a5abf5ba306e954 (diff) | |
Dsymutil fixes for macOS
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 a616433f8..8cf4b26b4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1064,6 +1064,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); } |