summaryrefslogtreecommitdiffstats
path: root/comm/mail/config/mozconfigs/linux64
diff options
context:
space:
mode:
Diffstat (limited to 'comm/mail/config/mozconfigs/linux64')
-rw-r--r--comm/mail/config/mozconfigs/linux64/code-coverage16
-rw-r--r--comm/mail/config/mozconfigs/linux64/code-coverage-debug9
-rw-r--r--comm/mail/config/mozconfigs/linux64/code-coverage-opt9
-rw-r--r--comm/mail/config/mozconfigs/linux64/common-linux6412
-rw-r--r--comm/mail/config/mozconfigs/linux64/debug4
-rw-r--r--comm/mail/config/mozconfigs/linux64/debug-searchfox-clang14
-rw-r--r--comm/mail/config/mozconfigs/linux64/l10n-mozconfig1
-rw-r--r--comm/mail/config/mozconfigs/linux64/nightly2
-rw-r--r--comm/mail/config/mozconfigs/linux64/nightly-asan23
-rw-r--r--comm/mail/config/mozconfigs/linux64/nightly-asan-reporter18
-rw-r--r--comm/mail/config/mozconfigs/linux64/release3
-rw-r--r--comm/mail/config/mozconfigs/linux64/source11
-rw-r--r--comm/mail/config/mozconfigs/linux64/tsan22
13 files changed, 144 insertions, 0 deletions
diff --git a/comm/mail/config/mozconfigs/linux64/code-coverage b/comm/mail/config/mozconfigs/linux64/code-coverage
new file mode 100644
index 0000000000..d072916ff5
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/code-coverage
@@ -0,0 +1,16 @@
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/nightly"
+
+ac_add_options --disable-install-strip
+ac_add_options --disable-elf-hack
+ac_add_options --disable-sandbox
+ac_add_options --disable-dmd
+ac_add_options --disable-profiling
+ac_add_options --disable-warnings-as-errors
+ac_add_options --without-wasm-sandboxed-libraries
+ac_add_options --enable-coverage
+
+CLANG_LIB_DIR="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && cd lib/linux && pwd)"
+export LDFLAGS="--coverage -L$CLANG_LIB_DIR"
+export LIBS="-lclang_rt.profile-x86_64"
+export RUSTFLAGS="-Ccodegen-units=1 -Zprofile -Cpanic=abort -Zpanic_abort_tests -Clink-dead-code -Coverflow-checks=off"
+export RUSTDOCFLAGS="-Cpanic=abort"
diff --git a/comm/mail/config/mozconfigs/linux64/code-coverage-debug b/comm/mail/config/mozconfigs/linux64/code-coverage-debug
new file mode 100644
index 0000000000..f362f2ba41
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/code-coverage-debug
@@ -0,0 +1,9 @@
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/code-coverage"
+
+ac_add_options --enable-debug=-g1
+ac_add_options --enable-rust-tests
+
+# https://bugs.llvm.org/show_bug.cgi?id=49226
+# LLD 12.0.0 had a behavior change that breaks coverage builds.
+# Passing --no-fortran-common restores the old behavior.
+export LDFLAGS="$LDFLAGS -Wl,--no-fortran-common"
diff --git a/comm/mail/config/mozconfigs/linux64/code-coverage-opt b/comm/mail/config/mozconfigs/linux64/code-coverage-opt
new file mode 100644
index 0000000000..427eeaaf3b
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/code-coverage-opt
@@ -0,0 +1,9 @@
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/code-coverage"
+
+ac_add_options --enable-debug-symbols=-g1
+ac_add_options --enable-rust-tests
+
+# https://bugs.llvm.org/show_bug.cgi?id=49226
+# LLD 12.0.0 had a behavior change that breaks coverage builds.
+# Passing --no-fortran-common restores the old behavior.
+export LDFLAGS="$LDFLAGS -Wl,--no-fortran-common"
diff --git a/comm/mail/config/mozconfigs/linux64/common-linux64 b/comm/mail/config/mozconfigs/linux64/common-linux64
new file mode 100644
index 0000000000..14f08de4d4
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/common-linux64
@@ -0,0 +1,12 @@
+# This file is sourced by the nightly, debug, and release mozconfigs.
+. "$topsrcdir/build/unix/mozconfig.linux"
+
+ac_add_options --enable-update-channel=${MOZ_UPDATE_CHANNEL}
+
+# Needed to enable breakpad in application.ini
+export MOZILLA_OFFICIAL=1
+
+# Package js shell.
+export MOZ_PACKAGE_JSSHELL=1
+
+. "$topsrcdir/comm/mail/config/mozconfigs/common"
diff --git a/comm/mail/config/mozconfigs/linux64/debug b/comm/mail/config/mozconfigs/linux64/debug
new file mode 100644
index 0000000000..ce0b53d48d
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/debug
@@ -0,0 +1,4 @@
+. "$topsrcdir/comm/build/mozconfig.comm-sccache"
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/common-linux64"
+
+ac_add_options --enable-debug
diff --git a/comm/mail/config/mozconfigs/linux64/debug-searchfox-clang b/comm/mail/config/mozconfigs/linux64/debug-searchfox-clang
new file mode 100644
index 0000000000..d106cf76fa
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/debug-searchfox-clang
@@ -0,0 +1,14 @@
+MOZ_AUTOMATION_BUILD_SYMBOLS=0
+MOZ_AUTOMATION_CHECK=0
+
+. "$topsrcdir/build/unix/mozconfig.linux"
+. "$topsrcdir/comm/mail/config/mozconfigs/common"
+
+ac_add_options --enable-debug
+
+# Add the static checker
+ac_add_options --enable-clang-plugin
+ac_add_options --enable-mozsearch-plugin
+
+# Disable enforcing that add-ons are signed by the trusted root
+MOZ_REQUIRE_ADDON_SIGNING=0
diff --git a/comm/mail/config/mozconfigs/linux64/l10n-mozconfig b/comm/mail/config/mozconfigs/linux64/l10n-mozconfig
new file mode 100644
index 0000000000..a370f145f0
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/l10n-mozconfig
@@ -0,0 +1 @@
+. "$topsrcdir/comm/mail/config/mozconfigs/l10n-common"
diff --git a/comm/mail/config/mozconfigs/linux64/nightly b/comm/mail/config/mozconfigs/linux64/nightly
new file mode 100644
index 0000000000..25616f9ff8
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/nightly
@@ -0,0 +1,2 @@
+. "$topsrcdir/comm/build/mozconfig.comm-sccache"
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/common-linux64"
diff --git a/comm/mail/config/mozconfigs/linux64/nightly-asan b/comm/mail/config/mozconfigs/linux64/nightly-asan
new file mode 100644
index 0000000000..1e2faf5767
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/nightly-asan
@@ -0,0 +1,23 @@
+. "$topsrcdir/comm/build/mozconfig.comm-sccache"
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/common-linux64"
+
+# We still need to build with debug symbols
+ac_add_options --disable-debug
+ac_add_options --enable-optimize="-O2 -gline-tables-only"
+
+# ASan specific options on Linux
+ac_add_options --enable-valgrind
+
+. "$topsrcdir/build/unix/mozconfig.asan"
+ac_add_options --disable-elf-hack
+
+# Piggybacking UBSan for now since only a small subset of checks are enabled.
+# A new build can be created when appropriate.
+ac_add_options --enable-undefined-sanitizer
+
+# Need this to prevent name conflicts with the normal nightly build packages
+export MOZ_PKG_SPECIAL=asan
+
+# Disable telemetry
+ac_add_options MOZ_TELEMETRY_REPORTING=
+
diff --git a/comm/mail/config/mozconfigs/linux64/nightly-asan-reporter b/comm/mail/config/mozconfigs/linux64/nightly-asan-reporter
new file mode 100644
index 0000000000..c38fa607a4
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/nightly-asan-reporter
@@ -0,0 +1,18 @@
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/common-linux64"
+
+# We still need to build with debug symbols
+ac_add_options --disable-debug
+ac_add_options --enable-optimize="-O2 -gline-tables-only"
+
+# ASan specific options on Linux
+ac_add_options --enable-valgrind
+
+. $topsrcdir/build/unix/mozconfig.asan
+ac_add_options --disable-elf-hack
+
+ac_add_options --enable-address-sanitizer-reporter
+
+# Need this to prevent name conflicts with the normal nightly build packages
+export MOZ_PKG_SPECIAL=asan-reporter
+
+. "$topsrcdir/build/mozconfig.common.override"
diff --git a/comm/mail/config/mozconfigs/linux64/release b/comm/mail/config/mozconfigs/linux64/release
new file mode 100644
index 0000000000..65ab47554f
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/release
@@ -0,0 +1,3 @@
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/common-linux64"
+
+ac_add_options --enable-official-branding
diff --git a/comm/mail/config/mozconfigs/linux64/source b/comm/mail/config/mozconfigs/linux64/source
new file mode 100644
index 0000000000..e4095057f0
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/source
@@ -0,0 +1,11 @@
+. "$topsrcdir/comm/mail/config/mozconfigs/common"
+
+# The source "build" only needs a mozconfig because we use the build system as
+# our script for generating it. This allows us to run configure without any
+# extra dependencies on specific toolchains, e.g. gtk3.
+. "$topsrcdir/build/mozconfig.no-compile"
+
+# mozconfig.no-compile does not remove nodejs requirement.
+# The source mozconfig for FF includes the following:
+ac_add_options --disable-nodejs
+unset NODEJS
diff --git a/comm/mail/config/mozconfigs/linux64/tsan b/comm/mail/config/mozconfigs/linux64/tsan
new file mode 100644
index 0000000000..2373188558
--- /dev/null
+++ b/comm/mail/config/mozconfigs/linux64/tsan
@@ -0,0 +1,22 @@
+. "$topsrcdir/comm/build/mozconfig.comm-sccache"
+. "$topsrcdir/comm/mail/config/mozconfigs/linux64/common-linux64"
+
+# We still need to build with debug symbols
+ac_add_options --disable-debug
+ac_add_options --enable-optimize="-O2 -gline-tables-only"
+
+. $topsrcdir/build/unix/mozconfig.linux
+. $topsrcdir/build/unix/mozconfig.tsan
+ac_add_options --disable-elf-hack
+
+# Need this to prevent name conflicts with the normal nightly build packages
+export MOZ_PKG_SPECIAL=tsan
+
+# Disable telemetry
+ac_add_options MOZ_TELEMETRY_REPORTING=
+
+# rustfmt is currently missing in Rust nightly
+unset RUSTFMT
+
+# Current Rust Nightly has warnings
+ac_add_options --disable-warnings-as-errors