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

ansible,jenkins: install and use GCC 10 on ubuntu2004_sharedlibs #3485

Merged
merged 4 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
12 changes: 12 additions & 0 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,18 @@ elif [ "$SELECT_ARCH" = "ARM64" ]; then
fi
echo "Compiler set to GCC" `$CXX -dumpversion`
;;
*ubuntu2004_sharedlibs* )
targos marked this conversation as resolved.
Show resolved Hide resolved
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