Add suggested changes from @nekosan

This commit is contained in:
dr460nf1r3 2021-11-06 16:22:41 +01:00
parent fb6cc36a14
commit 618b474fe2
No known key found for this signature in database
GPG Key ID: B5C20B53B5FB19ED

View File

@ -145,6 +145,7 @@ ac_add_options --enable-application=browser
mk_add_options MOZ_OBJDIR=${PWD@Q}/obj mk_add_options MOZ_OBJDIR=${PWD@Q}/obj
ac_add_options --prefix=/usr ac_add_options --prefix=/usr
ac_add_options --enable-linker=lld
ac_add_options --enable-release ac_add_options --enable-release
ac_add_options --enable-hardening ac_add_options --enable-hardening
ac_add_options --enable-rust-simd ac_add_options --enable-rust-simd
@ -159,6 +160,7 @@ export OBJCOPY='/usr/bin/llvm-objcopy'
export RANLIB=llvm-ranlib export RANLIB=llvm-ranlib
export STRIP=llvm-strip export STRIP=llvm-strip
# Branding # Branding
ac_add_options --enable-update-channel=release ac_add_options --enable-update-channel=release
ac_add_options --with-app-name=${pkgname} ac_add_options --with-app-name=${pkgname}
@ -264,8 +266,8 @@ build() {
# -fno-plt with cross-LTO causes obscure LLVM errors # -fno-plt with cross-LTO causes obscure LLVM errors
# LLVM ERROR: Function Import: link error # LLVM ERROR: Function Import: link error
# CFLAGS="${CFLAGS/-fno-plt/}" CFLAGS="${CFLAGS/-fno-plt/}"
# CXXFLAGS="${CXXFLAGS/-fno-plt/}" CXXFLAGS="${CXXFLAGS/-fno-plt/}"
# Do 3-tier PGO # Do 3-tier PGO
echo "Building instrumented browser..." echo "Building instrumented browser..."