Bug 1554632 - reviewbot tasks should use a mozconfig file. r=bastien,sylvestre draft
authorpulselistener
Mon, 27 May 2019 13:34:20 +0000
changeset 2026389 9d0f25949e4bb088e6522be7dc89b29b06cf8cc4
parent 2025976 8e80b2082da53556d32efa82121b2391899ab543
child 2026390 991935e48a50af4ff8c9c78fcb4906a9dd5a10af
push id368002
push userreviewbot
push dateMon, 27 May 2019 13:35:05 +0000
treeherdertry@991935e48a50 [default view] [failures only]
reviewersbastien, sylvestre
bugs1554632
milestone69.0a1
Bug 1554632 - reviewbot tasks should use a mozconfig file. r=bastien,sylvestre Differential Revision: https://phabricator.services.mozilla.com/D32680 Differential Diff: PHID-DIFF-nsbdrglwovhbzazy34eb
taskcluster/scripts/misc/source-test-clang-setup.sh
--- a/taskcluster/scripts/misc/source-test-clang-setup.sh
+++ b/taskcluster/scripts/misc/source-test-clang-setup.sh
@@ -2,11 +2,18 @@
 source $HOME/checkouts/gecko/taskcluster/scripts/misc/source-test-common.sh
 
 # Add clang-tidy to PATH
 export PATH=$MOZBUILD_STATE_PATH/clang-tidy/bin:$PATH
 
 # Use toolchain clang
 export LD_LIBRARY_PATH=$MOZBUILD_STATE_PATH/clang/lib
 
+# Write custom mozconfig
+export MOZCONFIG=$HOME/checkouts/gecko/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 $MOZBUILD_STATE_PATH/clang-tidy $MOZBUILD_STATE_PATH/clang-tools/clang-tidy