diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-09-07 22:01:49 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-09-13 10:07:23 -0300 |
commit | 83fe9373621ab9f7e175a43868b2eda935107539 (patch) | |
tree | 116a92b2c32713b4f3f907b451e457a9a623d50a /platform/osx/SCsub | |
parent | 06138bf18c25a8c5f7e2e5bb1ebd9dcf0b2f28dd (diff) |
Added a crash handler to dump the backtrace on Windows, Linux and OS X
Diffstat (limited to 'platform/osx/SCsub')
-rw-r--r-- | platform/osx/SCsub | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/osx/SCsub b/platform/osx/SCsub index 27117c2e8d..5b2de54535 100644 --- a/platform/osx/SCsub +++ b/platform/osx/SCsub @@ -3,6 +3,7 @@ Import('env') files = [ + 'crash_handler_osx.mm', 'os_osx.mm', 'godot_main_osx.mm', 'audio_driver_osx.cpp', @@ -12,4 +13,8 @@ files = [ 'power_osx.cpp', ] -env.Program('#bin/godot', files) +prog = env.Program('#bin/godot', files) +if (env['target'] == "debug" or env['target'] == "release_debug"): + # Build the .dSYM file for atos + action = "dsymutil " + File(prog)[0].path + " -o " + File(prog)[0].path + ".dSYM" + env.AddPostAction(prog, action) |