Bug 1577528 - Remove hardcoded clang version in ccov mozconfigs r=froydnj

So that we don't have to keep bumping them by hand with every compiler upgrade.

This pattern was taken from the other uses of https://searchfox.org/mozilla-central/search?q=CLANG_LIB_DIR&case=true

Differential Revision: https://phabricator.services.mozilla.com/D43990

--HG--
extra : moz-landing-system : lando
This commit is contained in:
David Major 2019-08-30 13:46:11 +00:00
parent 90152ac00d
commit 2883853abf
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,7 @@ ac_add_options --disable-profiling
ac_add_options --disable-warnings-as-errors
ac_add_options --enable-coverage
export LDFLAGS="--coverage -L$MOZ_FETCHES_DIR/clang/lib/clang/8.0.1/lib/linux/"
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 -Zno-landing-pads -Clink-dead-code -Coverflow-checks=off"

View File

@ -8,6 +8,7 @@ ac_add_options --disable-sandbox
ac_add_options --disable-warnings-as-errors
ac_add_options --enable-coverage
export LDFLAGS="-coverage -L$MOZ_FETCHES_DIR/clang/lib/clang/8.0.1/lib/darwin/"
CLANG_LIB_DIR="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && cd lib/darwin && pwd)"
export LDFLAGS="-coverage -L$CLANG_LIB_DIR"
export LIBS="-lclang_rt.profile_osx"
export RUSTFLAGS="-Ccodegen-units=1 -Zprofile -Zno-landing-pads -Clink-dead-code -Coverflow-checks=off"