Skip to content

Commit

Permalink
jenkins: select gcc 12 on Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Sep 5, 2024
1 parent 164cd5b commit 1fa63e2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ case $NODE_NAME in
;;
esac
;;
*ubuntu2204*)
if [ "$NODEJS_MAJOR_VERSION" -gt "22" ]; then
export CC="ccache gcc-12"
export CXX="ccache g++-12"
echo ""
else
# Default gcc on Ubuntu 22.04 is gcc 11.
export CC="ccache gcc"
export CC="ccache g++"
fi
echo "Compiler set to GCC" `$CXX -dumpversion`
return
;;
esac

if [ "$SELECT_ARCH" = "PPC64LE" ]; then
Expand Down

0 comments on commit 1fa63e2

Please sign in to comment.