mirror of
https://github.com/Feodor2/Mypal68.git
synced 2025-06-18 23:05:40 -04:00
20 lines
690 B
Bash
20 lines
690 B
Bash
#!/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
|
|
# Enable debug mode
|
|
echo "ac_add_options --enable-debug" > $MOZCONFIG
|
|
# Enable GC zeal, a testing and debugging feature that helps find GC-related bugs in JSAPI applications.
|
|
echo "ac_add_options --enable-gczeal" > $MOZCONFIG
|
|
|
|
# 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
|