From 230389bac21b7080918024c3a496af26705b8471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 11 Dec 2023 17:31:59 +0100 Subject: [PATCH] jenkins: enable `select-compiler.sh` on armv7l Select GCC 10 for Node.js >=20 Refs: https://github.com/nodejs/build/issues/3317#issuecomment-1850188840 --- jenkins/scripts/select-compiler.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/jenkins/scripts/select-compiler.sh b/jenkins/scripts/select-compiler.sh index 3fadb39c8..fd570f6ca 100644 --- a/jenkins/scripts/select-compiler.sh +++ b/jenkins/scripts/select-compiler.sh @@ -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 @@ -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