diff options
Diffstat (limited to 'waterfox-g/debian/mozconfig')
-rw-r--r-- | waterfox-g/debian/mozconfig | 42 |
1 files changed, 13 insertions, 29 deletions
diff --git a/waterfox-g/debian/mozconfig b/waterfox-g/debian/mozconfig index da1d8d4..850281e 100644 --- a/waterfox-g/debian/mozconfig +++ b/waterfox-g/debian/mozconfig @@ -1,44 +1,19 @@ -if test `lsb_release -sc` = "bionic" || test `lsb_release -sc` = "focal" || test `lsb_release -sc` = "stretch" || test `lsb_release -sc` = "buster"; then -export NODEJS=/usr/lib/nodejs-mozilla/bin/node -fi - -if test `lsb_release -sc` = "bionic" || test `lsb_release -sc` = "stretch"; then -export NASM=/usr/lib/nasm-mozilla/bin/nasm -fi - -# For successfull LTO build, we need to use matching LLVM version -if test `lsb_release -sc` = "bionic" || test `lsb_release -sc` = "focal" || test `lsb_release -sc` = "impish" || test `lsb_release -sc` = "stretch" || test `lsb_release -sc` = "buster" || test `lsb_release -sc` = "bullseye"; then -export PATH=/usr/lib/llvm-12/bin/:$PATH -fi - -if test `lsb_release -sc` = "kinetic"; then -export PATH=/usr/lib/llvm-14/bin/:$PATH -fi - -export CC=clang -export CXX=clang++ -export AR=llvm-ar -export NM=llvm-nm -export RANLIB=llvm-ranlib -export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system - ac_add_options --prefix=/usr -export MOZ_PGO=1 - mk_add_options AUTOCLOBBER=1 ac_add_options --disable-debug ac_add_options --disable-debug-symbols ac_add_options --disable-crashreporter ac_add_options --disable-profiling -ac_add_options --disable-verify-mar ac_add_options --disable-dmd ac_add_options --disable-geckodriver ac_add_options --disable-bootstrap ac_add_options --disable-updater ac_add_options --disable-elf-hack +ac_add_options --disable-tests +ac_add_options --enable-unverified-updates ac_add_options --enable-pulseaudio ac_add_options --enable-alsa ac_add_options --enable-jack @@ -48,9 +23,16 @@ ac_add_options --enable-default-toolkit=cairo-gtk3-wayland ac_add_options --enable-hardening ac_add_options --enable-optimize ac_add_options --enable-rust-simd -ac_add_options --enable-lto ac_add_options --enable-linker=lld ac_add_options --enable-jxl +if test "$GEN_PGO"; then + ac_add_options --enable-profile-generate=cross +elif test "$USE_PGO"; then + ac_add_options --enable-lto=cross + ac_add_options --enable-profile-use=cross + ac_add_options --with-pgo-profile-path="$PWD"/merged.profdata + ac_add_options --with-pgo-jarlog="$PWD"/jarlog +fi ac_add_options --with-app-name=waterfox-g ac_add_options --with-app-basename=Waterfox @@ -58,12 +40,14 @@ ac_add_options --with-branding=waterfox/browser/branding ac_add_options --with-unsigned-addon-scopes=app,system ac_add_options --without-wasm-sandboxed-libraries ac_add_options --allow-addon-sideload -ac_add_options --with-version-file-path=$topsrcdir/debian/app_version +ac_add_options --with-version-file-path="$topsrcdir"/debian/app_version export MOZ_REQUIRE_SIGNING= export MOZ_INCLUDE_SOURCE_INFO=1 export MOZ_APP_REMOTINGNAME=waterfox-g +# stackrpms,2 ac_add_options "MOZ_ALLOW_LEGACY_EXTENSIONS=1" X=$(($(nproc --all)/2)) mk_add_options MOZ_MAKE_FLAGS="-j${X%.*}" +mk_add_options MOZ_OBJDIR="${PWD}"/obj |