diff options
| author | gingerBill <bill@gingerbill.org> | 2018-12-02 19:39:21 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-12-02 19:39:21 +0000 |
| commit | d02b0508508dd92e6cb72bd610f33ae37a999ede (patch) | |
| tree | a45d37a3a4d72eb1efabd058cc3c032df0f6f6c8 /src/main.cpp | |
| parent | 17b0e3a1a1017a3f2afc8fd47fc7451d65eb33cd (diff) | |
Fix typos for OS X debug builds
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main.cpp b/src/main.cpp index 10681cd4d..a6838dd1c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1088,19 +1088,19 @@ 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 defined(GB_SYSTEM_OSX) + if (build_context.ODIN_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, + "dsymutil %.*s%s", LIT(output_base), output_ext + ); + + if (exit_code != 0) { + return exit_code; + } + } + #endif if (build_context.show_timings) { |