Skip to content

Commit

Permalink
manifest fix and mozconfig for branding and lto I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
K4sum1 committed Mar 11, 2024
1 parent 2f17cf0 commit 37aa87e
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 27 deletions.
1 change: 1 addition & 0 deletions browser/app/firefox.exe.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
</application>
</compatibility>
</assembly>
48 changes: 48 additions & 0 deletions browser/app/r3dfox.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
name="r3dfox"
type="win32"
/>
<description>r3dfox</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="mozglue"
version="1.0.0.0"
language="*"
/>
</dependentAssembly>
</dependency>
<ms_asmv3:trustInfo xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3">
<ms_asmv3:security>
<ms_asmv3:requestedPrivileges>
<ms_asmv3:requestedExecutionLevel level="asInvoker" uiAccess="false" />
</ms_asmv3:requestedPrivileges>
</ms_asmv3:security>
</ms_asmv3:trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
</application>
</compatibility>
</assembly>
55 changes: 28 additions & 27 deletions mozconfigs/mozconfig-win
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 37aa87e

Please sign in to comment.