summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/gccsnapshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ci/jobs/gccsnapshot.sh')
-rwxr-xr-xtools/ci/jobs/gccsnapshot.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/ci/jobs/gccsnapshot.sh b/tools/ci/jobs/gccsnapshot.sh
index 207f963b2..26eb5e88e 100755
--- a/tools/ci/jobs/gccsnapshot.sh
+++ b/tools/ci/jobs/gccsnapshot.sh
@@ -3,6 +3,14 @@
export CC=gcc
export CXX=g++
export LOGFILE=gcc-snapshot.log
+
+if [ "$NEWCC" != "" ]; then
+ export CC="$NEWCC"
+fi
+if [ "$NEWCXX" != "" ]; then
+ export CXX="$NEWCXX"
+fi
+
export PATH=/usr/lib/gcc-snapshot/bin:$PATH
source ./tools/ci/scripts/init.sh