mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-20 02:18:22 +00:00
Added optimization flags
This commit is contained in:
5
.github/workflows/alpha.yml
vendored
5
.github/workflows/alpha.yml
vendored
@@ -226,7 +226,9 @@ jobs:
|
||||
cd ..
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
run: |
|
||||
export ZEN_RELEASE=1
|
||||
pnpm build
|
||||
|
||||
- name: Package
|
||||
run: pnpm package
|
||||
@@ -349,6 +351,7 @@ jobs:
|
||||
- name: Build
|
||||
run: |
|
||||
unset SURFER_PLATFORM
|
||||
export ZEN_RELEASE=1
|
||||
pnpm build
|
||||
|
||||
- name: Package
|
||||
|
||||
27
.github/workflows/src/windows_mozconfig
vendored
27
.github/workflows/src/windows_mozconfig
vendored
@@ -7,7 +7,7 @@ export WINEDEBUG=-all
|
||||
|
||||
#? https://bugzilla.mozilla.org/show_bug.cgi?id=1617793
|
||||
#? https://phabricator.services.mozilla.com/D170170
|
||||
ac_add_options --target=x86_64-pc-windows-msvc
|
||||
ac_add_options --target=x86_64-pc-mingw32
|
||||
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export MOZ_MAINTENANCE_SERVICE=
|
||||
@@ -15,5 +15,30 @@ export MOZ_MAINTENANCE_SERVICE=
|
||||
export MOZ_PKG_FORMAT=TAR
|
||||
export MOZ_LTO=cross
|
||||
|
||||
export CROSS_BUILD=1
|
||||
POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine"
|
||||
TOOLS=$(echo ~)/win-cross
|
||||
WINSYSROOT="$(echo ~)/win-root"
|
||||
|
||||
export MIDL="$TOOLS/wine/bin/widl"
|
||||
export MOZ_INCLUDE_SOURCE_INFO=1
|
||||
export MOZ_STUB_INSTALLER=1
|
||||
export WIN32_REDIST_DIR="$(echo ~)/win-cross/vs2022"/VC/Redist/MSVC/14.34.31931/x64/Microsoft.VC143.CRT
|
||||
export WIN_UCRT_REDIST_DIR="$(echo ~)/win-cross/vs2022/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/x64"
|
||||
export WINEDEBUG=-all
|
||||
|
||||
ac_add_options --enable-lto=cross,full
|
||||
ac_add_options --enable-optimize="-clang:-march=x86-64 -clang:-msse3 -clang:-mtune=haswell -clang:-O3 -w"
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options RUSTC_OPT_LEVEL=3
|
||||
export MOZILLA_OFFICIAL=1
|
||||
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=x86-64"
|
||||
|
||||
ac_add_options --enable-default-browser-agent
|
||||
ac_add_options --enable-install-strip
|
||||
ac_add_options --enable-jxl
|
||||
ac_add_options --enable-linker=lld
|
||||
|
||||
# ALWAYS MANTAIN ONE LINE BREAK AT THE END OF THIS FILE
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
if test -d "$HOME/.mozbuild/clang/bin"; then
|
||||
export CC="$HOME"/.mozbuild/clang/bin/clang
|
||||
export CXX="$HOME"/.mozbuild/clang/bin/clang++
|
||||
else
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
fi
|
||||
|
||||
# Browser branding
|
||||
ac_add_options --enable-update-channel=release
|
||||
ac_add_options --without-wasm-sandboxed-libraries
|
||||
@@ -34,9 +42,25 @@ ac_add_options --enable-release
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --with-ccache=sccache
|
||||
ac_add_options --disable-debug
|
||||
|
||||
ac_add_options --disable-bits-download
|
||||
ac_add_options --disable-crashreporter
|
||||
ac_add_options --disable-dmd
|
||||
ac_add_options --disable-geckodriver
|
||||
ac_add_options --disable-maintenance-service
|
||||
ac_add_options --disable-parental-controls
|
||||
ac_add_options --disable-profiling
|
||||
ac_add_options --disable-tests
|
||||
|
||||
ac_add_options --enable-unverified-updates
|
||||
ac_add_options --enable-updater
|
||||
|
||||
ac_add_options --without-wasm-sandboxed-libraries
|
||||
|
||||
export MOZ_REQUIRE_SIGNING=
|
||||
export MOZ_TELEMETRY_REPORTING=
|
||||
|
||||
ac_add_options --target=x86_64-pc-linux-gnu
|
||||
|
||||
# ALWAYS MANTAIN ONE LINE BREAK AT THE END OF THIS FILE
|
||||
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
# Optimise builds
|
||||
# ac_add_options --enable-application=browser
|
||||
# ac_add_options --enable-hardening
|
||||
# ac_add_options --enable-rust-simd
|
||||
# ac_add_options --enable-release
|
||||
# ac_add_options --enable-optimize
|
||||
# ac_add_options --with-ccache=sccache
|
||||
# ac_add_options --disable-debug
|
||||
# ac_add_options --enable-updater
|
||||
|
||||
if test "$ZEN_RELEASE"; then
|
||||
ac_add_options --enable-lto=full
|
||||
ac_add_options --enable-optimize="-march=x86-64 -msse3 -mtune=haswell -O3 -w"
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options RUSTC_OPT_LEVEL=3
|
||||
export MOZILLA_OFFICIAL=1
|
||||
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=x86-64"
|
||||
fi
|
||||
|
||||
ac_add_options --enable-linker=lld
|
||||
ac_add_options --enable-pulseaudio
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-alsa
|
||||
|
||||
# Disable telemetry and tracking
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"brandShortName": "Zen Browser",
|
||||
"brandFullName": "Zen Browser",
|
||||
"release": {
|
||||
"displayVersion": "1.0.0-a.1",
|
||||
"displayVersion": "1.0.0-a.0",
|
||||
"github": {
|
||||
"repo": "zen-browser/desktop"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user