Export compiler path in CppCheck & FoorPrint
CppCheck & FootPrint also need to use GCC v7.3.1.
Export PATH to GCC v7.3.1 in these jobs.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: Iab24eb1311c53f5d071eb3208dc1345fa67f4c80
diff --git a/run-cppcheck.sh b/run-cppcheck.sh
index 564f6f0..7526418 100755
--- a/run-cppcheck.sh
+++ b/run-cppcheck.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#-------------------------------------------------------------------------------
-# Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved.
+# Copyright (c) 2018-2022, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -43,6 +43,8 @@
#Fail if any command exit with error.
set -e
+export PATH=$PATH:$GCC_7_3_1_PATH
+
RAW_OUTPUT=0
while getopts "hr" opt ; do