Skip to content
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

jenkins: enable select-compiler.sh on armv7l #3591

Merged
merged 1 commit into from
Dec 12, 2023
Merged
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
19 changes: 19 additions & 0 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ if [ "$DONTSELECT_COMPILER" != "DONT" ]; then
*aix* ) SELECT_ARCH=AIXPPC ;;
*x64* ) SELECT_ARCH=X64 ;;
*arm64* ) SELECT_ARCH=ARM64 ;;
*armv7l* ) SELECT_ARCH=ARMV7L ;;
*ibmi73* ) SELECT_ARCH=IBMI73 ;;
esac
fi
Expand Down Expand Up @@ -253,4 +254,22 @@ elif [ "$SELECT_ARCH" = "ARM64" ]; then
;;
esac

elif [ "$SELECT_ARCH" = "ARMV7L" ]; then
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on armv7l"

case $nodes in
*ubuntu2004* )
if [ "$NODEJS_MAJOR_VERSION" -gt "19" ]; then
export CC="ccache gcc-10"
export CXX="ccache g++-10"
export LINK="g++-10"
else
export CC="ccache gcc"
export CXX="ccache g++"
export LINK="g++"
fi
echo "Compiler set to GCC" `$CXX -dumpversion`
;;
esac

fi