From 37aa87eed6b017668db4b68fc2a0ae4cef1c9e2d Mon Sep 17 00:00:00 2001 From: K4sum1 Date: Sun, 10 Mar 2024 17:49:12 -0700 Subject: [PATCH] manifest fix and mozconfig for branding and lto I guess --- browser/app/firefox.exe.manifest | 1 + browser/app/r3dfox.exe.manifest | 48 ++++++++++++++++++++++++++++ mozconfigs/mozconfig-win | 55 ++++++++++++++++---------------- 3 files changed, 77 insertions(+), 27 deletions(-) create mode 100644 browser/app/r3dfox.exe.manifest diff --git a/browser/app/firefox.exe.manifest b/browser/app/firefox.exe.manifest index 995b2fc869c16..6b8e6e1f07492 100644 --- a/browser/app/firefox.exe.manifest +++ b/browser/app/firefox.exe.manifest @@ -42,6 +42,7 @@ + diff --git a/browser/app/r3dfox.exe.manifest b/browser/app/r3dfox.exe.manifest new file mode 100644 index 0000000000000..06205fdda7f4b --- /dev/null +++ b/browser/app/r3dfox.exe.manifest @@ -0,0 +1,48 @@ + + + +r3dfox + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mozconfigs/mozconfig-win b/mozconfigs/mozconfig-win index 6d49e2156b486..4f445e95474eb 100644 --- a/mozconfigs/mozconfig-win +++ b/mozconfigs/mozconfig-win @@ -27,17 +27,17 @@ ac_add_options --enable-clang-plugin ac_add_options --enable-lto=cross #ac_add_options --enable-profile-use=cross # Enable for normal -#ac_add_options --enable-optimize="-O2 -O3 -Xclang -O3" +ac_add_options --enable-optimize="-O2 -O3 -Xclang -O3" # Enable for SSE3 #ac_add_options --enable-optimize="-O2 -O3 -msse3 -Xclang -O3" # Enable for SSE4 -ac_add_options --enable-optimize="-O2 -O3 -msse3 -mssse3 -msse4.1 -Xclang -O3" +#ac_add_options --enable-optimize="-O2 -O3 -msse3 -mssse3 -msse4.1 -Xclang -O3" # Enable this first for AVX/2 #ac_add_options --enable-wasm-avx # Enable for AVX #ac_add_options --enable-optimize="-O2 -O3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes -Xclang -O3" # Enable for AVX2 -ac_add_options --enable-optimize="-O2 -O3 -march=x86-64-v3 -Xclang -O3" +#ac_add_options --enable-optimize="-O2 -O3 -march=x86-64-v3 -Xclang -O3" ac_add_options --enable-rust-simd ac_add_options --enable-hardening export MOZILLA_OFFICIAL=1 @@ -65,8 +65,8 @@ ac_add_options --disable-updater ac_add_options --disable-maintenance-service ac_add_options --without-wasm-sandboxed-libraries ac_add_options --disable-bits-download -export MOZ_SOURCE_CHANGESET=${changeset} -#export MOZ_SOURCE_CHANGESET=insertgoofyhere +#export MOZ_SOURCE_CHANGESET=${changeset} +export MOZ_SOURCE_CHANGESET=iloveneedingtobodgechangesetfornoreason mk_add_options MOZ_CRASHREPORTER=0 mk_add_options MOZ_DATA_REPORTING=0 mk_add_options MOZ_SERVICES_HEALTHREPORT=0 @@ -80,10 +80,10 @@ export MOZ_REQUIRE_SIGNING= export MOZ_TELEMETRY_REPORTING= # Branding -#ac_add_options --with-app-name=r3dfox -#ac_add_options --with-app-basename=r3dfox -#ac_add_options --with-branding=browser/branding/r3dfox -#ac_add_options --with-distribution-id=com.eclipse.r3dfox +ac_add_options --with-app-name=r3dfox +ac_add_options --with-app-basename=r3dfox +ac_add_options --with-branding=browser/branding/r3dfox +ac_add_options --with-distribution-id=com.eclipse.r3dfox # Plasmafox Branding #ac_add_options --with-app-name=Plasmafox @@ -106,19 +106,20 @@ export RUSTC_OPT_LEVEL="3" ac_add_options RUSTC_OPT_LEVEL="3" # Enable PGO/LTO -#export MOZ_LTO=cross -#ac_add_options MOZ_LTO=cross -#export MOZ_PGO=1 -#ac_add_options MOZ_PGO=1 +export MOZ_LTO=cross +ac_add_options MOZ_LTO=cross +export MOZ_PGO=1 +ac_add_options MOZ_PGO=1 # Enable for normal # Compiler, Linker, and Rust flags -#export CFLAGS="-O3 /clang:-O3" -#export CPPFLAGS="-O3 /clang:-O3" -#export CXXFLAGS="-O3 /clang:-O3" -#export LDFLAGS="-Wl,-O3" -#Uncomment below if building latest +export CFLAGS="-O3 /clang:-O3" +export CPPFLAGS="-O3 /clang:-O3" +export CXXFLAGS="-O3 /clang:-O3" +export LDFLAGS="-Wl,-O3" #export RUSTFLAGS="-C" +#Comment above if building older? Why is the above borked in normal but fine in SSE4? + # Enable for SSE3 # Compiler, Linker, and Rust flags @@ -127,18 +128,18 @@ ac_add_options RUSTC_OPT_LEVEL="3" #export CXXFLAGS="-O3 -msse3 /clang:-O3" #export LDFLAGS="-Wl,-O3 -msse3" #export RUSTFLAGS="target-feature=+sse3" -#Comment above and uncomment below if building latest #export RUSTFLAGS="-C target-feature=+sse3" +#Comment above if building older # Enable for SSE4 # Compiler, Linker, and Rust flags -export CFLAGS="-O3 -msse3 -mssse3 -msse4.1 /clang:-O3" -export CPPFLAGS="-O3 -msse3 -mssse3 -msse4.1 /clang:-O3" -export CXXFLAGS="-O3 -msse3 -mssse3 -msse4.1 /clang:-O3" -export LDFLAGS="-Wl,-O3 -msse3 -mssse3 -msse4.1" +#export CFLAGS="-O3 -msse3 -mssse3 -msse4.1 /clang:-O3" +#export CPPFLAGS="-O3 -msse3 -mssse3 -msse4.1 /clang:-O3" +#export CXXFLAGS="-O3 -msse3 -mssse3 -msse4.1 /clang:-O3" +#export LDFLAGS="-Wl,-O3 -msse3 -mssse3 -msse4.1" #export RUSTFLAGS=target-feature=+sse4.1" -#Comment above and uncomment below if building latest -export RUSTFLAGS="-C target-feature=+sse4.1" +#export RUSTFLAGS="-C target-feature=+sse4.1" +#Comment above if building older # Enable for AVX # Compiler, Linker, and Rust flags @@ -147,8 +148,8 @@ export RUSTFLAGS="-C target-feature=+sse4.1" #export CXXFLAGS="-O3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes /clang:-O3 /arch:AVX" #export LDFLAGS="-Wl,-O3 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -maes" #export RUSTFLAGS="target-feature=+avx" -#Comment above and uncomment below if building latest #export RUSTFLAGS="-C target-feature=+avx" +#Comment above if building older # Enable for AVX2 # Compiler, Linker, and Rust flags @@ -157,8 +158,8 @@ export RUSTFLAGS="-C target-feature=+sse4.1" #export CXXFLAGS="-O3 -march=x86-64-v3 /clang:-O3 /clang:-ffp-contract=fast /arch:AVX2" #export LDFLAGS="-Wl,-O3 -march=x86-64-v3" #export RUSTFLAGS="target-feature=+avx2" -#Comment above and uncomment below if building latest #export RUSTFLAGS="-C target-feature=+avx2" +#Comment above if building older 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 VERBOSE=1