Skip to content

Commit fce8d13

Browse files
committed
Refactor LTO configuration across platforms and update version numbers in surfer.json
1 parent 7f9fd7e commit fce8d13

File tree

7 files changed

+28
-29
lines changed

7 files changed

+28
-29
lines changed

configs/common/mozconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ if test "$ZEN_RELEASE"; then
5353
# Done by vlad, if something fails, it's his fault
5454
ac_add_options --disable-default-browser-agent
5555

56+
if ! test "$ZEN_DISABLE_LTO"; then
57+
export MOZ_LTO=cross,full
58+
ac_add_options --enable-lto=cross,full
59+
fi
60+
5661
ac_add_options --enable-jemalloc
5762

5863
mk_add_options MOZILLA_OFFICIAL=1

configs/linux/mozconfig

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ if test "$SURFER_COMPAT" = "x86_64"; then
1818
# Optimization flags for SURFER_COMPAT
1919
ac_add_options --enable-optimize="-O3 -march=x86-64"
2020

21-
if ! test "$ZEN_DISABLE_LTO"; then
22-
export MOZ_LTO=cross,thin
23-
ac_add_options --enable-lto=cross,thin
24-
fi
25-
2621
export CFLAGS="$CFLAGS -O3 -ffp-contract=fast -march=x86-64"
2722
export CPPFLAGS="$CPPFLAGS -O3 -ffp-contract=fast -march=x86-64"
2823
export CXXFLAGS="$CXXFLAGS -O3 -flto=thin -ffp-contract=fast -march=x86-64"
@@ -37,11 +32,6 @@ elif test "$SURFER_COMPAT" = "aarch64"; then
3732
export MOZ_PGO=1
3833
ac_add_options MOZ_PGO=1
3934

40-
if ! test "$ZEN_DISABLE_LTO"; then
41-
export MOZ_LTO=cross,thin
42-
ac_add_options --enable-lto=cross,thin
43-
fi
44-
4535
export CFLAGS="$CFLAGS -O3"
4636
export CPPFLAGS="$CPPFLAGS -O3"
4737
export CXXFLAGS="$CXXFLAGS -O3"
@@ -55,12 +45,6 @@ elif test "$ZEN_RELEASE"; then
5545
export MOZ_PGO=1
5646
ac_add_options MOZ_PGO=1
5747

58-
# Override the default LTO flags because clang++ LITERALLY SEGFAULTS while compiling with -flto=thin... How unfortunate :c
59-
if ! test "$ZEN_DISABLE_LTO"; then
60-
export MOZ_LTO=cross
61-
ac_add_options --enable-lto=cross
62-
fi
63-
6448
# Optimization flags for general release
6549
ac_add_options --enable-wasm-avx
6650
ac_add_options --enable-optimize="-O3 -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -mpopcnt -mpclmul"

configs/macos/mozconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ ac_add_options MOZ_PGO=1
1111

1212
ac_add_options --enable-clang-plugin
1313

14-
if ! test "$ZEN_DISABLE_LTO"; then
15-
export MOZ_LTO=cross,thin
16-
ac_add_options --enable-lto=cross,thin
17-
fi
18-
1914
if test "$SURFER_COMPAT" = "x86_64"; then
2015
ac_add_options --target=x86_64-apple-darwin
2116

configs/windows/mozconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ fi
2525
ac_add_options --disable-maintenance-service
2626
ac_add_options --disable-bits-download
2727

28-
if ! test "$ZEN_DISABLE_LTO"; then
29-
export MOZ_LTO=cross,thin
30-
ac_add_options --enable-lto=cross,thin
31-
fi
32-
3328
if test "$SURFER_COMPAT" = "x86_64"; then
3429
ac_add_options --target=x86_64-pc-windows-msvc
3530
ac_add_options --enable-eme=widevine

l10n

Submodule l10n updated 34 files

scripts/remove-failed-jobs.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
gh_bulk_delete_workflow_runs() {
2+
repo=$1
3+
4+
# Ensure the repo argument is provided
5+
if [[ -z "$repo" ]]; then
6+
echo "Usage: gh_bulk_delete_workflow_runs <owner/repo>"
7+
return 1
8+
fi
9+
10+
runs=$(gh api repos/$repo/actions/runs --paginate | jq -r '.workflow_runs[] | select(.conclusion == "failure") | .id')
11+
12+
while IFS= read -r run; do
13+
echo "Deleting run https://github.com/$repo/actions/runs/$run"
14+
gh api -X DELETE repos/$repo/actions/runs/$run --silent
15+
done <<< "$runs"
16+
17+
echo "All workflow runs for $repo have been deleted."
18+
}
19+
20+
gh_bulk_delete_workflow_runs $1

surfer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"brandShortName": "Zen Browser",
1919
"brandFullName": "Zen Browser",
2020
"release": {
21-
"displayVersion": "1.0.2-b.3",
21+
"displayVersion": "1.0.2-b.4",
2222
"github": {
2323
"repo": "zen-browser/desktop"
2424
},
@@ -40,7 +40,7 @@
4040
"brandShortName": "Zen Twilight",
4141
"brandFullName": "Zen Twilight",
4242
"release": {
43-
"displayVersion": "1.0.2-t.4",
43+
"displayVersion": "1.0.2-t.5",
4444
"github": {
4545
"repo": "zen-browser/desktop"
4646
}

0 commit comments

Comments
 (0)