Skip to content

Commit

Permalink
jenkins: select gcc 12 on Ubuntu 22.04 for Node.js 23 (#3890)
Browse files Browse the repository at this point in the history
Refs: #3806
  • Loading branch information
richardlau authored Sep 6, 2024
1 parent d3f52e3 commit f39aa5e
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 CXX="ccache g++"
fi
echo "Compiler set to GCC" `$CXX -dumpversion`
return
;;
esac

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

0 comments on commit f39aa5e

Please sign in to comment.