Update LTO configuration and enable Clang plugin for Linux builds

This commit is contained in:
mr. M
2024-12-22 14:36:02 +01:00
parent e1cc55ff79
commit 31ce093a4a
3 changed files with 7 additions and 4 deletions

View File

@@ -128,6 +128,10 @@ jobs:
continue-on-error: true
run: |
export SURFER_PLATFORM="linux"
if test "${{ matrix.arch }}" = "x86_64-v3"; then
# TODO: Fix this!
export ZEN_DISABLE_LTO=1
fi
sh .github/workflows/src/release-build.sh
- name: Build again if it failed

View File

@@ -54,8 +54,8 @@ if test "$ZEN_RELEASE"; then
ac_add_options --disable-default-browser-agent
if ! test "$ZEN_DISABLE_LTO"; then
export MOZ_LTO=cross,full
ac_add_options --enable-lto=cross,full
export MOZ_LTO=cross,thin
ac_add_options --enable-lto=cross,thin
fi
ac_add_options --enable-jemalloc

View File

@@ -8,7 +8,6 @@ else
fi
if test "$SURFER_COMPAT" = "x86_64"; then
ac_add_options --enable-clang-plugin
ac_add_options --target=x86_64-pc-linux
ac_add_options --enable-eme=widevine
@@ -25,7 +24,6 @@ if test "$SURFER_COMPAT" = "x86_64"; then
export LDFLAGS="$LDFLAGS -Wl,-O3 -Wl,-mllvm,-fp-contract=fast -march=x86-64"
export RUSTFLAGS="$RUSTFLAGS -C target-cpu=x86-64 -C codegen-units=1 -Clink-args=--icf=safe"
elif test "$SURFER_COMPAT" = "aarch64"; then
ac_add_options --enable-clang-plugin
ac_add_options --target=aarch64-linux-gnu
ac_add_options --enable-optimize="-O3"
@@ -63,6 +61,7 @@ ac_add_options --enable-alsa
ac_add_options --enable-pulseaudio
if test "$ZEN_RELEASE"; then
ac_add_options --enable-clang-plugin
# Disable DMD and ELF hacks, enable linker lld
ac_add_options --disable-dmd