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:
parent
7f9fd7ef06
commit
fce8d134a3
7 changed files with 28 additions and 29 deletions
|
@ -53,6 +53,11 @@ if test "$ZEN_RELEASE"; then
|
||||||
# Done by vlad, if something fails, it's his fault
|
# Done by vlad, if something fails, it's his fault
|
||||||
ac_add_options --disable-default-browser-agent
|
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
|
ac_add_options --enable-jemalloc
|
||||||
|
|
||||||
mk_add_options MOZILLA_OFFICIAL=1
|
mk_add_options MOZILLA_OFFICIAL=1
|
||||||
|
|
|
@ -18,11 +18,6 @@ if test "$SURFER_COMPAT" = "x86_64"; then
|
||||||
# Optimization flags for SURFER_COMPAT
|
# Optimization flags for SURFER_COMPAT
|
||||||
ac_add_options --enable-optimize="-O3 -march=x86-64"
|
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 CFLAGS="$CFLAGS -O3 -ffp-contract=fast -march=x86-64"
|
||||||
export CPPFLAGS="$CPPFLAGS -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"
|
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
|
export MOZ_PGO=1
|
||||||
ac_add_options 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 CFLAGS="$CFLAGS -O3"
|
||||||
export CPPFLAGS="$CPPFLAGS -O3"
|
export CPPFLAGS="$CPPFLAGS -O3"
|
||||||
export CXXFLAGS="$CXXFLAGS -O3"
|
export CXXFLAGS="$CXXFLAGS -O3"
|
||||||
|
@ -55,12 +45,6 @@ elif test "$ZEN_RELEASE"; then
|
||||||
export MOZ_PGO=1
|
export MOZ_PGO=1
|
||||||
ac_add_options 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
|
# Optimization flags for general release
|
||||||
ac_add_options --enable-wasm-avx
|
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"
|
ac_add_options --enable-optimize="-O3 -march=x86-64-v3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -mpopcnt -mpclmul"
|
||||||
|
|
|
@ -11,11 +11,6 @@ ac_add_options MOZ_PGO=1
|
||||||
|
|
||||||
ac_add_options --enable-clang-plugin
|
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
|
if test "$SURFER_COMPAT" = "x86_64"; then
|
||||||
ac_add_options --target=x86_64-apple-darwin
|
ac_add_options --target=x86_64-apple-darwin
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,6 @@ fi
|
||||||
ac_add_options --disable-maintenance-service
|
ac_add_options --disable-maintenance-service
|
||||||
ac_add_options --disable-bits-download
|
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
|
if test "$SURFER_COMPAT" = "x86_64"; then
|
||||||
ac_add_options --target=x86_64-pc-windows-msvc
|
ac_add_options --target=x86_64-pc-windows-msvc
|
||||||
ac_add_options --enable-eme=widevine
|
ac_add_options --enable-eme=widevine
|
||||||
|
|
2
l10n
2
l10n
|
@ -1 +1 @@
|
||||||
Subproject commit b89baff1cd3b1512dc2a536815a88d94b92abe5f
|
Subproject commit b1bf9efa93fac72629659cfdaa67e789205a6a3d
|
20
scripts/remove-failed-jobs.sh
Normal file
20
scripts/remove-failed-jobs.sh
Normal 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
|
|
@ -18,7 +18,7 @@
|
||||||
"brandShortName": "Zen Browser",
|
"brandShortName": "Zen Browser",
|
||||||
"brandFullName": "Zen Browser",
|
"brandFullName": "Zen Browser",
|
||||||
"release": {
|
"release": {
|
||||||
"displayVersion": "1.0.2-b.3",
|
"displayVersion": "1.0.2-b.4",
|
||||||
"github": {
|
"github": {
|
||||||
"repo": "zen-browser/desktop"
|
"repo": "zen-browser/desktop"
|
||||||
},
|
},
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
"brandShortName": "Zen Twilight",
|
"brandShortName": "Zen Twilight",
|
||||||
"brandFullName": "Zen Twilight",
|
"brandFullName": "Zen Twilight",
|
||||||
"release": {
|
"release": {
|
||||||
"displayVersion": "1.0.2-t.4",
|
"displayVersion": "1.0.2-t.5",
|
||||||
"github": {
|
"github": {
|
||||||
"repo": "zen-browser/desktop"
|
"repo": "zen-browser/desktop"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue