Skip to content

Commit

Permalink
add debug symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
bend-n committed Oct 12, 2023
1 parent 6001cb7 commit ae39857
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .github/2d-build-modules.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
brotli = "yes" # compression and woff2
dbus = "no" # screensaver and portal
debug_symbols = "no"
deprecated = "no"
execinfo = "no"
fontconfig = "yes" # system fonts
graphite = "yes"
lto = "auto"
minizip = "no" # zip support
module_astcenc_enabled = "no" # adaptive scalable data compression format
module_basis_universal_enabled = "yes"
Expand Down Expand Up @@ -48,6 +45,7 @@
module_tga_enabled = "no" # more image formats
module_theora_enabled = "no" # ogg theora video format
module_tinyexr_enabled = "no" # image
module_ktx_enabled = "no" # why are there so many random image formats
module_upnp_enabled = "no" # universal plug and play
module_vhacd_enabled = "no" # 3d surface stuff
module_vorbis_enabled = "yes" # vorbis audio
Expand All @@ -59,7 +57,6 @@
module_zip_enabled = "no"
opengl3 = "yes"
optimize = "size"
production = "yes"
pulseaudio = "yes" # linux audio
speechd = "no" # tts
touch = "yes" # touchscreen
Expand Down
7 changes: 5 additions & 2 deletions .github/actions/build-godot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ runs:
cores=$(nproc) || cores=$(sysctl -n hw.ncpu)
[[ -n "${{ inputs.flags }}" ]] && scons_flags="${{ inputs.flags }}"
[[ ${{ inputs.target }} == "editor" ]] && scons_flags="${scons_flags//disable_3d=yes/}" # remove disable_3d=yes if editor
scons -j$((cores+2)) p=${{ inputs.platform }} target=${{ inputs.target }} use_lto=yes udev=yes $scons_flags
[[ ${{ inputs.target}} != "editor" ]] && strip bin/* || true
[[ ${{ inputs.target }} == "editor" ]] && scons_flags="$scons_flags debug_symbols=yes"
[[ ${{ inputs.target }} != "editor" ]] && scons_flags="$scons_flags deprecated=no"
scons -j$((cores+2)) p=${{ inputs.platform }} target=${{ inputs.target }} verbose=yes udev=yes dev_build=no lto=auto $scons_flags
echo "compile done"
[[ ${{ inputs.target}} != "editor" ]] && strip -v bin/* || true
ls bin
echo ::endgroup::
shell: bash
1 change: 1 addition & 0 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ runs:

- name: Compress
run: |
strip godot.linuxbsd.editor.x86_64 -v || true
mv godot.linuxbsd.editor.x86_64 ${{ env.fstart }}_linux.x86_64
mv templates.tpz ${{ env.fstart }}_export_templates.tpz
shell: bash
Expand Down
6 changes: 1 addition & 5 deletions .github/normal-build-modules.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
debug_symbols = "no"
optimize = "size"
lto = "auto"
production = "yes"
deprecated = "no"
optimize = "speed"

0 comments on commit ae39857

Please sign in to comment.