From 83fe9373621ab9f7e175a43868b2eda935107539 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Thu, 7 Sep 2017 22:01:49 -0300 Subject: Added a crash handler to dump the backtrace on Windows, Linux and OS X --- platform/osx/SCsub | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'platform/osx/SCsub') 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) -- cgit v1.2.3