browser/config/mozconfigs/linux64/code-coverage
author Marco Castelluccio <mcastelluccio@mozilla.com>
Fri, 27 Jul 2018 01:25:49 +0100
changeset 490468 5cd3b13d5eb95dfa4cd81d02f2b153a435203762
parent 485107 4aa8eb6e5ca75109e97e0c3f64c5529fd74c94eb
child 498559 568a3198520c34d9d73d3924a178528bf791946d
permissions -rw-r--r--
Bug 1471339 - Add RUSTFLAGS to Linux coverage build to enable gcov profiling for Rust. r=jmaher

MOZ_AUTOMATION_L10N_CHECK=0

. "$topsrcdir/browser/config/mozconfigs/linux64/nightly"

TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}

ac_add_options --disable-install-strip
ac_add_options --disable-elf-hack
ac_add_options --disable-sandbox
ac_add_options --disable-profiling
ac_add_options --disable-warnings-as-errors
ac_add_options --enable-coverage

export CFLAGS="--coverage"
export CXXFLAGS="--coverage"
export LDFLAGS="--coverage -L$topsrcdir/clang/lib/clang/7.0.0/lib/linux/"
export LIBS="-lclang_rt.profile-x86_64"
export RUSTFLAGS="-Ccodegen-units=1 -Zprofile -Zno-landing-pads"