Skip to content

Commit

Permalink
jenkins: use ccache with devtoolset on ppc64le (#2157)
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.

Co-authored-by: Sam Roberts <[email protected]>
  • Loading branch information
2 people authored and rvagg committed Mar 4, 2020
1 parent 6ee0aa0 commit 3fa6737
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 @@ -42,6 +42,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 3fa6737

Please sign in to comment.