Skip to content

Commit

Permalink
Enable GCC 10 for RISC-V (#3590)
Browse files Browse the repository at this point in the history
* Enable GCC 10 for RISC-V

Given the rapid evolution of RISC-V, the newer the GCC toolchain, the better.
  • Loading branch information
luhenry authored Dec 21, 2023
1 parent 93da3a3 commit 383de60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-farm/platform-specific-configurations/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ if [ "${VARIANT}" == "${BUILD_VARIANT_DRAGONWELL}" ] && [ "$JAVA_FEATURE_VERSION
export CXX=/usr/local/gcc9/bin/g++-9.3
# Enable GCC 10 for Java 17+ for repeatable builds, but not for our supported releases
# Ref https://github.com/adoptium/temurin-build/issues/2787
elif [ "${ARCHITECTURE}" == "riscv64" ] && [ -r /usr/bin/gcc-10 ]; then
# Enable GCC 10 for RISC-V, given the rapid evolution of RISC-V, the newer the GCC toolchain, the better
[ -r /usr/bin/gcc-10 ] && export CC=/usr/bin/gcc-10
[ -r /usr/bin/g++-10 ] && export CXX=/usr/bin/g++-10
elif [ "$JAVA_FEATURE_VERSION" -ge 19 ] && [ -r /usr/local/gcc11/bin/gcc-11.2 ]; then
export PATH=/usr/local/gcc11/bin:$PATH
[ -r /usr/local/gcc11/bin/gcc-11.2 ] && export CC=/usr/local/gcc11/bin/gcc-11.2
Expand Down

0 comments on commit 383de60

Please sign in to comment.