mirror of
https://github.com/zen-browser/desktop
synced 2026-04-26 01:25:02 +02:00
chore: Update build configurations to enable install strip and strip debug symbols
This commit is contained in:
@@ -8,13 +8,15 @@ else
|
||||
fi
|
||||
|
||||
if test "$ZEN_RELEASE"; then
|
||||
export MOZ_PGO=1
|
||||
ac_add_options MOZ_PGO=1
|
||||
|
||||
ac_add_options --disable-dmd
|
||||
ac_add_options --enable-linker=lld
|
||||
ac_add_options --disable-elf-hack
|
||||
|
||||
ac_add_options --enable-install-strip
|
||||
ac_add_options --enable-strip
|
||||
export STRIP_FLAGS="--strip-debug --strip-unneeded"
|
||||
|
||||
if [ -f /home/runner/.mozbuild/sccache/sccache ]; then
|
||||
mk_add_options 'export RUSTC_WRAPPER=/home/runner/.mozbuild/sccache/sccache'
|
||||
mk_add_options 'export CCACHE_CPP2=yes'
|
||||
@@ -26,6 +28,11 @@ fi
|
||||
if test "$SURFER_COMPAT" = "true"; then
|
||||
# Build for linux-i686
|
||||
ac_add_options --target=i686-pc-linux
|
||||
else
|
||||
# Note: we dont do PGO for i686 because we need to figure out about:
|
||||
# "libgtk-3.so.0: cannot open shared object file: No such file or directory"
|
||||
export MOZ_PGO=1
|
||||
ac_add_options MOZ_PGO=1
|
||||
fi
|
||||
|
||||
# Build for linux-x86_64
|
||||
|
||||
Reference in New Issue
Block a user