88be952fc9
Now that we have a built-in stacktrace on a segfault it would be useful to have debug information on debug_release builds so that bugreports can include this information. Without this debug info we will still get function names in the backtrace but not file location. This commit will by default build all targets with minimal debug info and then strip the information into separate files. On MacOS this is a .dSYM file, on Linux/MingW this is a .debug file. MacOSX will automatically load a dSYM file if it exists in its debugger. On Linux/MingW we create a 'gnu debuglink' meaning that gdb and friends will automatically find the debug symbols if they exist. Existing workflow for developers does not change at all, except that we now create two instead of one build artifact by default. This commit also adds a 'debug_symbols' option to X11, MacOS, and MingW targets. The default is 'yes' which corresponds to -g1. The alternatives are 'no' (don't generate debug infos at all) or 'full' which runs with -g2. A target=debug build will now build with -g3. |
||
---|---|---|
.. | ||
export | ||
context_gl_win.cpp | ||
context_gl_win.h | ||
crash_handler_win.cpp | ||
crash_handler_win.h | ||
ctxgl_procaddr.cpp | ||
ctxgl_procaddr.h | ||
detect.py | ||
godot_res.rc | ||
godot_win.cpp | ||
godot.ico | ||
joypad.cpp | ||
joypad.h | ||
key_mapping_win.cpp | ||
key_mapping_win.h | ||
lang_table.h | ||
logo.png | ||
os_windows.cpp | ||
os_windows.h | ||
packet_peer_udp_winsock.cpp | ||
packet_peer_udp_winsock.h | ||
platform_config.h | ||
power_windows.cpp | ||
power_windows.h | ||
SCsub | ||
stream_peer_winsock.cpp | ||
stream_peer_winsock.h | ||
tcp_server_winsock.cpp | ||
tcp_server_winsock.h |