Skip to content

ansible: update compiler selection for 10.x #1240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if [ "$DONTSELECT_COMPILER" != "DONT" ]; then
case $NODE_NAME in
*ppc64_le* ) SELECT_ARCH=PPC64LE ;;
*s390x* ) SELECT_ARCH=S390X ;;
*aix* ) SELECT_ARCH=AIXPPC ;;
esac
fi

Expand All @@ -17,6 +18,7 @@ if [ "$SELECT_ARCH" = "PPC64LE" ]; then
echo "Setting compiler for Node version $NODE_MAJOR_VERSION on ppc64le"

if [ "$NODE_MAJOR_VERSION" -gt "9" ]; then
export PATH=/usr/lib/binutils-2.26/bin/:$PATH
export COMPILER_LEVEL="4.9"
fi

Expand All @@ -40,7 +42,7 @@ elif [ "$SELECT_ARCH" = "S390X" ]; then
echo "Setting compiler for Node version $NODE_MAJOR_VERSION on s390x"

if [ "$NODE_MAJOR_VERSION" -gt "9" ]; then
export PATH="$PATH:/data/gcc-4.9/bin"
export PATH="/data/gcc-4.9/bin:$PATH"
export COMPILER_LEVEL="-4.9"
fi

Expand All @@ -51,4 +53,20 @@ elif [ "$SELECT_ARCH" = "S390X" ]; then
export LDFLAGS="-Wl,-rpath,$(dirname $($CC --print-file-name libgcc_s.so))"

echo "Compiler set to $COMPILER_LEVEL"

elif [ "$SELECT_ARCH" = "AIXPPC" ]; then
# get node version
NODE_VERSION="$(python tools/getnodeversion.py)"
NODE_MAJOR_VERSION="$(echo "$NODE_VERSION" | cut -d . -f 1)"
echo "Setting compiler for Node version $NODE_MAJOR_VERSION on AIX"

if [ "$NODE_MAJOR_VERSION" -gt "9" ]; then
export LIBPATH=/home/iojs/gmake/opt/freeware/lib:/home/iojs/gcc-6.3.0-1/opt/freeware/lib
export PATH="/home/iojs/gcc-6.3.0-1/opt/freeware/bin:$PATH"
export CC="ccache `which gcc`" CXX="ccache `which g++`" CXX_host="ccache `which g++`"
echo "Compiler set to 6.3"
else
export CC="ccache `which gcc`" CXX="ccache `which g++`" CXX_host="ccache `which g++`"
echo "Compiler set to default at 4.8.5"
fi
fi