diff --git a/ansible/roles/docker/templates/ubuntu2004_sharedlibs.Dockerfile.j2 b/ansible/roles/docker/templates/ubuntu2004_sharedlibs.Dockerfile.j2 index b45b2e01f..f15a62939 100644 --- a/ansible/roles/docker/templates/ubuntu2004_sharedlibs.Dockerfile.j2 +++ b/ansible/roles/docker/templates/ubuntu2004_sharedlibs.Dockerfile.j2 @@ -19,6 +19,8 @@ RUN apt-get update && apt-get install apt-utils -y && \ ccache \ g++-8 \ gcc-8 \ + g++-10 \ + gcc-10 \ git \ openjdk-17-jre-headless \ pkg-config \ diff --git a/jenkins/scripts/select-compiler.sh b/jenkins/scripts/select-compiler.sh index 2e713f072..e5f6bd12b 100644 --- a/jenkins/scripts/select-compiler.sh +++ b/jenkins/scripts/select-compiler.sh @@ -239,6 +239,18 @@ elif [ "$SELECT_ARCH" = "ARM64" ]; then fi echo "Compiler set to GCC" `$CXX -dumpversion` ;; + *ubuntu2004_sharedlibs* ) + 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