Skip to content

Commit

Permalink
jenkins: use ccache with devtoolset on ppc64le
Browse files Browse the repository at this point in the history
Because devtoolset setup works by putting the devtoolset bin/ on the
front of PATH the compiler is called directly instead of via the ccache
wrappers.

Change select-compiler.sh to explicitly use ccache, as it does for s390x.
  • Loading branch information
sam-github committed Sep 30, 2019
1 parent 2389096 commit 70df2a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70df2a4

Please sign in to comment.