diff --git a/jenkins/scripts/select-compiler.sh b/jenkins/scripts/select-compiler.sh index a65b90a45..fbe5e8f2f 100644 --- a/jenkins/scripts/select-compiler.sh +++ b/jenkins/scripts/select-compiler.sh @@ -27,6 +27,9 @@ if [ "$SELECT_ARCH" = "PPC64LE" ]; then if [ "$NODEJS_MAJOR_VERSION" -gt "9" ]; then # Setup devtoolset-6, sets LD_LIBRARY_PATH, PATH, etc. . /opt/rh/devtoolset-6/enable + export CC="ccache ppc64le-redhat-linux-gcc" + export CXX="ccache ppc64le-redhat-linux-g++" + export LINK="ppc64le-redhat-linux-g++" echo "Compiler set to devtoolset-6" return fi @@ -43,8 +46,8 @@ if [ "$SELECT_ARCH" = "PPC64LE" ]; then fi # Select the appropriate compiler - export CC="gcc-${COMPILER_LEVEL}" - export CXX="g++-${COMPILER_LEVEL}" + export CC="ccache gcc-${COMPILER_LEVEL}" + export CXX="ccache g++-${COMPILER_LEVEL}" export LINK="g++-${COMPILER_LEVEL}" echo "Compiler set to $COMPILER_LEVEL"