diff options
| author | Hein-Pieter van Braam | 2018-01-26 20:46:56 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-01-26 20:46:56 +0100 |
| commit | c6d9a7665acdd5785760eee0c69bd1d2a53b6b90 (patch) | |
| tree | 5b35afb4f115d108948c9fb59ebf24fd758ccb19 /platform/x11 | |
| parent | 9ba5fb87f009faea406e3968f4d88234752d635b (diff) | |
| download | godot-c6d9a7665acdd5785760eee0c69bd1d2a53b6b90.tar.gz godot-c6d9a7665acdd5785760eee0c69bd1d2a53b6b90.tar.zst godot-c6d9a7665acdd5785760eee0c69bd1d2a53b6b90.zip | |
Make separate debug symbols opt-in
This adds a separate_debug_symbols option to the x11, windows, and osx
targets. This will default to adding normal debugging symbols to the
artifacts and only splits them when separate_debug_symbols=yes on the
Scons command line.
Diffstat (limited to 'platform/x11')
| -rw-r--r-- | platform/x11/SCsub | 2 | ||||
| -rw-r--r-- | platform/x11/detect.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/platform/x11/SCsub b/platform/x11/SCsub index 38dd2ddd8..b18757337 100644 --- a/platform/x11/SCsub +++ b/platform/x11/SCsub @@ -19,5 +19,5 @@ common_x11 = [ prog = env.add_program('#bin/godot', ['godot_x11.cpp'] + common_x11) -if env["debug_symbols"] == "full" or env["debug_symbols"] == "yes": +if (env["debug_symbols"] == "full" or env["debug_symbols"] == "yes") and env["separate_debug_symbols"]: env.AddPostAction(prog, make_debug) diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 5c8564376..02bd7232c 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -55,6 +55,7 @@ def get_opts(): BoolVariable('pulseaudio', 'Detect & use pulseaudio', True), BoolVariable('udev', 'Use udev for gamepad connection callbacks', False), EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')), + BoolVariable('separate_debug_symbols', 'Create a separate file with the debug symbols', False), BoolVariable('touch', 'Enable touch events', True), ] |
