Skip to content

Commit

Permalink
webkitgtk: Switch back debugging level to -g1
Browse files Browse the repository at this point in the history
With flatpak-builders default `-g` flag, the extension's size is 4.5GB,
creating `.Debug` extensions for applications requires much more resources and time.
It also take extra 30min to build the extension on the CI.
Application maintainers might avoid the extension due to these.

Setting `-g1` reduce the extension's size to the much more reasonable value of ~1GB.

Anyone who needs full debug symbols for developing a wxWebView app can easily trigger a test build with the debug symbols.
  • Loading branch information
tinywrkb committed May 4, 2022
1 parent e71cee9 commit e944e07
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions org.freedesktop.Sdk.Extension.wxwidgets.yaml
Expand Up @@ -48,10 +48,11 @@ modules:
- name: webkitgtk
# gnome sdk packaging https://gitlab.gnome.org/GNOME/gnome-build-meta/-/blob/master/elements/sdk/webkitgtk.{-4.0.bst,inc}
buildsystem: cmake-ninja
# for faster local compilation, disable debug symbols with -g0
#build-options:
# cflags: -g0
# cxxflags: -g0
# faster compilation that avoids having the extension blow up to over 4GB
# for even faster local compilation, disable debug symbols with -g0
build-options:
cflags: -g1
cxxflags: -g1
config-opts:
- -DPORT=GTK
- -DCMAKE_BUILD_TYPE=Release
Expand Down

0 comments on commit e944e07

Please sign in to comment.