Skip to content

Commit

Permalink
Select devtoolset-8 for rhel7-s390x
Browse files Browse the repository at this point in the history
PR-URL: #2262
  • Loading branch information
sam-github committed Apr 9, 2020
1 parent 3804506 commit a042232
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions jenkins/scripts/VersionSelectorScript.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def buildExclusions = [
// Linux PPC LE ------------------------------------------
[ /^centos7-ppcle/, anyType, lt(10) ],
[ /^ppcle-ubuntu/, releaseType, gte(10) ],
[ /^ppcle-ubuntu/, anyType, gte(14) ],

// Linux S390X --------------------------------------------
[ /s390x/, anyType, lt(6) ],
Expand Down
9 changes: 8 additions & 1 deletion jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@ elif [ "$SELECT_ARCH" = "S390X" ]; then

echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on s390x"

if [ "$NODEJS_MAJOR_VERSION" -gt "9" ]; then
if [ "$NODEJS_MAJOR_VERSION" -gt "13" ]; then
# Setup devtoolset-8, sets LD_LIBRARY_PATH, PATH, etc.
. /opt/rh/devtoolset-8/enable
export CC="ccache s390x-redhat-linux-gcc"
export CXX="ccache s390x-redhat-linux-g++"
export LINK="s390x-redhat-linux-g++"
echo "Compiler set to devtoolset-8"
elif [ "$NODEJS_MAJOR_VERSION" -gt "9" ]; then
# Setup devtoolset-6, sets LD_LIBRARY_PATH, PATH, etc.
. /opt/rh/devtoolset-6/enable
export CC="ccache s390x-redhat-linux-gcc"
Expand Down

0 comments on commit a042232

Please sign in to comment.