1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-08 04:49:59 +02:00

Refactor LTO configuration across platforms and update version numbers in surfer.json

This commit is contained in:
mr. M 2024-12-22 12:06:22 +01:00
parent 7f9fd7ef06
commit fce8d134a3
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
7 changed files with 28 additions and 29 deletions

View file

@ -53,6 +53,11 @@ if test "$ZEN_RELEASE"; then
# Done by vlad, if something fails, it's his fault
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
fi
ac_add_options --enable-jemalloc
mk_add_options MOZILLA_OFFICIAL=1

View file

@ -18,11 +18,6 @@ if test "$SURFER_COMPAT" = "x86_64"; then
# Optimization flags for SURFER_COMPAT
ac_add_options --enable-optimize="-O3 -march=x86-64"
if ! test "$ZEN_DISABLE_LTO"; then
export MOZ_LTO=cross,thin
ac_add_options --enable-lto=cross,thin
fi
export CFLAGS="$CFLAGS -O3 -ffp-contract=fast -march=x86-64"
export CPPFLAGS="$CPPFLAGS -O3 -ffp-contract=fast -march=x86-64"
export CXXFLAGS="$CXXFLAGS -O3 -flto=thin -ffp-contract=fast -march=x86-64"
@ -37,11 +32,6 @@ elif test "$SURFER_COMPAT" = "aarch64"; then
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
if ! test "$ZEN_DISABLE_LTO"; then
export MOZ_LTO=cross,thin
ac_add_options --enable-lto=cross,thin
fi
export CFLAGS="$CFLAGS -O3"
export CPPFLAGS="$CPPFLAGS -O3"
export CXXFLAGS="$CXXFLAGS -O3"
@ -55,12 +45,6 @@ elif test "$ZEN_RELEASE"; then
export MOZ_PGO=1
ac_add_options MOZ_PGO=1
# Override the default LTO flags because clang++ LITERALLY SEGFAULTS while compiling with -flto=thin... How unfortunate :c
if ! test "$ZEN_DISABLE_LTO"; then
export MOZ_LTO=cross
ac_add_options --enable-lto=cross
fi
# Optimization flags for general release
ac_add_options --enable-wasm-avx
ac_add_options --enable-optimize="-O3 -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -mpopcnt -mpclmul"

View file

@ -11,11 +11,6 @@ ac_add_options MOZ_PGO=1
ac_add_options --enable-clang-plugin
if ! test "$ZEN_DISABLE_LTO"; then
export MOZ_LTO=cross,thin
ac_add_options --enable-lto=cross,thin
fi
if test "$SURFER_COMPAT" = "x86_64"; then
ac_add_options --target=x86_64-apple-darwin

View file

@ -25,11 +25,6 @@ fi
ac_add_options --disable-maintenance-service
ac_add_options --disable-bits-download
if ! test "$ZEN_DISABLE_LTO"; then
export MOZ_LTO=cross,thin
ac_add_options --enable-lto=cross,thin
fi
if test "$SURFER_COMPAT" = "x86_64"; then
ac_add_options --target=x86_64-pc-windows-msvc
ac_add_options --enable-eme=widevine

2
l10n

@ -1 +1 @@
Subproject commit b89baff1cd3b1512dc2a536815a88d94b92abe5f
Subproject commit b1bf9efa93fac72629659cfdaa67e789205a6a3d

View file

@ -0,0 +1,20 @@
gh_bulk_delete_workflow_runs() {
repo=$1
# Ensure the repo argument is provided
if [[ -z "$repo" ]]; then
echo "Usage: gh_bulk_delete_workflow_runs <owner/repo>"
return 1
fi
runs=$(gh api repos/$repo/actions/runs --paginate | jq -r '.workflow_runs[] | select(.conclusion == "failure") | .id')
while IFS= read -r run; do
echo "Deleting run https://github.com/$repo/actions/runs/$run"
gh api -X DELETE repos/$repo/actions/runs/$run --silent
done <<< "$runs"
echo "All workflow runs for $repo have been deleted."
}
gh_bulk_delete_workflow_runs $1

View file

@ -18,7 +18,7 @@
"brandShortName": "Zen Browser",
"brandFullName": "Zen Browser",
"release": {
"displayVersion": "1.0.2-b.3",
"displayVersion": "1.0.2-b.4",
"github": {
"repo": "zen-browser/desktop"
},
@ -40,7 +40,7 @@
"brandShortName": "Zen Twilight",
"brandFullName": "Zen Twilight",
"release": {
"displayVersion": "1.0.2-t.4",
"displayVersion": "1.0.2-t.5",
"github": {
"repo": "zen-browser/desktop"
}