forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying something new with mozconfigs
- Loading branch information
Showing
6 changed files
with
259 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
## mozconfig for compiling r3dfox Browser for Windows on Linux | ||
|
||
# x86 build | ||
ac_add_options --target=i686-pc-mingw32 | ||
ac_add_options --with-toolchain-prefix=i686-pc-mingw32 | ||
ac_add_options --disable-sandbox | ||
|
||
# Please do not redistribute this build with official branding if you are not part of Eclipse Community. | ||
ac_add_options --with-app-name=r3dfox | ||
ac_add_options --with-app-basename=r3dfox | ||
# For potential nightly experimentation enable the below and disable the above. | ||
#ac_add_options --with-branding=browser/branding/nightly | ||
#ac_add_options --with-app-name=plasmafox | ||
#ac_add_options --with-app-basename=Plasmafox | ||
ac_add_options --enable-official-branding | ||
|
||
# Updater stuffs | ||
ac_add_options --disable-update-agent | ||
ac_add_options --disable-updater | ||
# Enable if update server and signatures are figured out | ||
#ac_add_options --enable-nss-mar | ||
|
||
# 16 jobs for 16 cores | ||
mk_add_options MOZ_MAKE_FLAGS="-j16" | ||
|
||
# Build for Windows on Linux | ||
CROSS_COMPILE=1 | ||
export WINEDEBUG=-all | ||
export DISPLAY=:2 | ||
|
||
# Build only r3dfox | ||
ac_add_options --enable-application=browser | ||
ac_add_options --disable-artifact-builds | ||
export MOZ_INCLUDE_SOURCE_INFO=1 | ||
export MOZ_SOURCE_CHANGESET=iloveneedingtobodgechangesetfornoreason | ||
|
||
# Optimization settings | ||
ac_add_options --disable-accessibility | ||
ac_add_options --disable-debug | ||
ac_add_options --disable-debug-js-modules | ||
ac_add_options --disable-debug-symbols | ||
ac_add_options --disable-tests | ||
ac_add_options --enable-clang-plugin | ||
ac_add_options --enable-hardening | ||
ac_add_options --enable-install-strip | ||
ac_add_options --enable-jemalloc | ||
ac_add_options --enable-lto | ||
ac_add_options --enable-optimize="-Qunused-arguments -O2 -msse2 -Xclang -O3" | ||
ac_add_options --enable-release | ||
ac_add_options --enable-rust-simd | ||
ac_add_options --enable-strip | ||
MOZ_OPTIMIZE=1 | ||
export MOZ_OPTIMIZE=1 | ||
mk_add_options MOZ_OPTIMIZE=1 | ||
export MOZILLA_OFFICIAL=1 | ||
export STRIP_FLAGS="--strip-debug --strip-unneeded" | ||
|
||
# Media settings | ||
ac_add_options --disable-eme | ||
ac_add_options --enable-av1 | ||
ac_add_options --enable-jxl | ||
ac_add_options --enable-raw | ||
ac_add_options --enable-webrtc | ||
|
||
# Add-ons | ||
ac_add_options --allow-addon-sideload | ||
ac_add_options --with-unsigned-addon-scopes=app,system | ||
|
||
# Client settings | ||
ac_add_options --disable-backgroundtasks | ||
ac_add_options --disable-bits-download | ||
ac_add_options --disable-crashreporter | ||
ac_add_options --disable-default-browser-agent | ||
ac_add_options --disable-maintenance-service | ||
ac_add_options --disable-notification-server | ||
ac_add_options --disable-parental-controls | ||
ac_add_options --without-wasm-sandboxed-libraries | ||
mk_add_options MOZ_CRASHREPORTER=0 | ||
mk_add_options MOZ_DATA_REPORTING=0 | ||
mk_add_options MOZ_SERVICES_HEALTHREPORT=0 | ||
mk_add_options MOZ_TELEMETRY_REPORTING= | ||
export MOZ_CRASHREPORTER=0 | ||
export MOZ_DATA_REPORTING=0 | ||
export MOZ_REQUIRE_SIGNING= | ||
export MOZ_TELEMETRY_REPORTING= | ||
|
||
# Set -Copt-level=3 | ||
export OPT_LEVEL="3" | ||
ac_add_options OPT_LEVEL="3" | ||
export RUSTC_OPT_LEVEL="3" | ||
ac_add_options RUSTC_OPT_LEVEL="3" | ||
|
||
# Enable LTO | ||
export MOZ_LTO=1 | ||
ac_add_options MOZ_LTO=1 | ||
|
||
# Compiler, Linker, and Rust flags | ||
export CFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" | ||
export CPPFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" | ||
export CXXFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" | ||
export LDFLAGS="-Wl,-O3 -msse2" | ||
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" | ||
export RUSTFLAGS="-C target-cpu=athlon64 -C target-feature=+sse2 -C codegen-units=1 -Z tune-cpu=athlon64" | ||
export VERBOSE=1 |
7 changes: 2 additions & 5 deletions
7
mozconfigs/mozconfig-win-debug → mozconfigs/mozconfig-win-debug-x64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
## mozconfig for compiling r3dfox Browser for Windows natively | ||
|
||
# x86 build | ||
ac_add_options --target=i686 | ||
ac_add_options --disable-sandbox | ||
|
||
# 16 jobs for 16 cores | ||
mk_add_options MOZ_MAKE_FLAGS="-j16" | ||
|
||
# Build only r3dfox | ||
ac_add_options --enable-application=browser | ||
ac_add_options --disable-artifact-builds | ||
export MOZ_INCLUDE_SOURCE_INFO=1 | ||
export MOZ_SOURCE_CHANGESET=iloveneedingtobodgechangesetfornoreason | ||
|
||
# Media settings | ||
ac_add_options --disable-eme | ||
ac_add_options --enable-av1 | ||
ac_add_options --enable-jxl | ||
ac_add_options --enable-raw | ||
ac_add_options --enable-webrtc | ||
|
||
# Add-ons | ||
ac_add_options --allow-addon-sideload | ||
ac_add_options --with-unsigned-addon-scopes=app,system | ||
|
||
# Client settings | ||
ac_add_options --disable-accessibility | ||
ac_add_options --disable-backgroundtasks | ||
ac_add_options --disable-bits-download | ||
ac_add_options --disable-default-browser-agent | ||
ac_add_options --disable-maintenance-service | ||
ac_add_options --disable-notification-server | ||
ac_add_options --disable-parental-controls | ||
ac_add_options --disable-update-agent | ||
ac_add_options --disable-updater | ||
ac_add_options --enable-clang-plugin | ||
ac_add_options --enable-debug | ||
ac_add_options --without-wasm-sandboxed-libraries | ||
export CROSS_COMPILE=0 | ||
export MOZ_INCLUDE_SOURCE_INFO=1 | ||
export MOZ_REQUIRE_SIGNING= | ||
export MOZ_SOURCE_CHANGESET=iloveneedingtobodgechangesetfornoreason |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
## mozconfig for compiling r3dfox Browser for Windows natively | ||
|
||
##Uncomment PGO for release build | ||
|
||
# x86 build | ||
ac_add_options --target=i686 | ||
ac_add_options --disable-sandbox | ||
|
||
# Please do not redistribute this build with official branding if you are not part of Eclipse Community. | ||
ac_add_options --with-app-name=r3dfox | ||
ac_add_options --with-app-basename=r3dfox | ||
# For potential nightly experimentation enable the below and disable the above. | ||
#ac_add_options --with-branding=browser/branding/nightly | ||
#ac_add_options --with-app-name=plasmafox | ||
#ac_add_options --with-app-basename=Plasmafox | ||
ac_add_options --enable-official-branding | ||
|
||
# Updater stuffs | ||
ac_add_options --disable-update-agent | ||
ac_add_options --disable-updater | ||
# Enable if update server and signatures are figured out | ||
#ac_add_options --enable-nss-mar | ||
|
||
# 16 jobs for 16 cores | ||
mk_add_options MOZ_MAKE_FLAGS="-j16" | ||
|
||
# Build only r3dfox | ||
ac_add_options --enable-application=browser | ||
ac_add_options --disable-artifact-builds | ||
export MOZ_INCLUDE_SOURCE_INFO=1 | ||
export MOZ_SOURCE_CHANGESET=iloveneedingtobodgechangesetfornoreason | ||
|
||
# Optimization settings | ||
ac_add_options --disable-accessibility | ||
ac_add_options --disable-debug | ||
ac_add_options --disable-debug-js-modules | ||
ac_add_options --disable-debug-symbols | ||
ac_add_options --disable-tests | ||
ac_add_options --enable-clang-plugin | ||
ac_add_options --enable-hardening | ||
ac_add_options --enable-install-strip | ||
ac_add_options --enable-jemalloc | ||
ac_add_options --enable-lto | ||
ac_add_options --enable-optimize="-Qunused-arguments -O2 -msse2 -Xclang -O3" | ||
ac_add_options --enable-release | ||
ac_add_options --enable-rust-simd | ||
ac_add_options --enable-strip | ||
MOZ_OPTIMIZE=1 | ||
export MOZ_OPTIMIZE=1 | ||
mk_add_options MOZ_OPTIMIZE=1 | ||
export MOZILLA_OFFICIAL=1 | ||
export STRIP_FLAGS="--strip-debug --strip-unneeded" | ||
|
||
# Media settings | ||
ac_add_options --disable-eme | ||
ac_add_options --enable-av1 | ||
ac_add_options --enable-jxl | ||
ac_add_options --enable-raw | ||
ac_add_options --enable-webrtc | ||
|
||
# Add-ons | ||
ac_add_options --allow-addon-sideload | ||
ac_add_options --with-unsigned-addon-scopes=app,system | ||
|
||
# Client settings | ||
ac_add_options --disable-backgroundtasks | ||
ac_add_options --disable-bits-download | ||
ac_add_options --disable-crashreporter | ||
ac_add_options --disable-default-browser-agent | ||
ac_add_options --disable-maintenance-service | ||
ac_add_options --disable-notification-server | ||
ac_add_options --disable-parental-controls | ||
ac_add_options --without-wasm-sandboxed-libraries | ||
mk_add_options MOZ_CRASHREPORTER=0 | ||
mk_add_options MOZ_DATA_REPORTING=0 | ||
mk_add_options MOZ_SERVICES_HEALTHREPORT=0 | ||
mk_add_options MOZ_TELEMETRY_REPORTING= | ||
export MOZ_CRASHREPORTER=0 | ||
export MOZ_DATA_REPORTING=0 | ||
export MOZ_REQUIRE_SIGNING= | ||
export MOZ_TELEMETRY_REPORTING= | ||
|
||
# Set -Copt-level=3 | ||
export OPT_LEVEL="3" | ||
ac_add_options OPT_LEVEL="3" | ||
export RUSTC_OPT_LEVEL="3" | ||
ac_add_options RUSTC_OPT_LEVEL="3" | ||
|
||
# Enable LTO | ||
export MOZ_LTO=1 | ||
ac_add_options MOZ_LTO=1 | ||
#export MOZ_PGO=1 | ||
#ac_add_options MOZ_PGO=1 | ||
|
||
if test "$GEN_PGO"; then | ||
ac_add_options --enable-profile-generate | ||
elif test "$USE_PGO"; then | ||
ac_add_options --enable-profile-use=cross | ||
fi | ||
|
||
# Compiler, Linker, and Rust flags | ||
export CFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" | ||
export CPPFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" | ||
export CXXFLAGS="-Qunused-arguments -O2 -msse2 /clang:-O3" | ||
export LDFLAGS="-Wl,-O3 -msse2" | ||
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" | ||
export RUSTFLAGS="-C target-cpu=athlon64 -C target-feature=+sse2 -C codegen-units=1 -Z tune-cpu=athlon64" | ||
export VERBOSE=1 |