fune/taskcluster/scripts/misc/source-test-clang-setup.sh
Andi-Bogdan Postelnicu d2990dc0e7 Bug 1590414 - For C++ static analysis cleanup the running scripts. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D50065

--HG--
extra : moz-landing-system : lando
2019-10-25 08:21:07 +00:00

23 lines
725 B
Bash
Executable file

#!/bin/bash
source $HOME/checkouts/gecko/taskcluster/scripts/misc/source-test-common.sh
# Add clang-tidy to PATH
export PATH=$MOZ_FETCHES_DIR/clang-tidy/bin:$PATH
# Use toolchain clang
export LD_LIBRARY_PATH=$MOZ_FETCHES_DIR/clang/lib
# Write custom mozconfig
export MOZCONFIG=$GECKO_PATH/mozconfig
# Add to mozconfig all the appropriate options
cat <<EOT >> $MOZCONFIG
# Enable debug mode
ac_add_options --enable-debug
# Enable GC zeal, a testing and debugging feature that helps find GC-related bugs in JSAPI applications.
ac_add_options --enable-gczeal
EOT
# Mach lookup clang-tidy in clang-tools
mkdir -p $MOZBUILD_STATE_PATH/clang-tools
ln -s $MOZ_FETCHES_DIR/clang-tidy $MOZBUILD_STATE_PATH/clang-tools/clang-tidy