Skip to content

Commit bddef25

Browse files
committed
RHAIENG-1186: chore(code-server): update to gcc-toolset-14 with CXXFLAGS="-std=c++20"
``` npm error /root/.cache/node-gyp/24.8.0/include/node/v8config.h:13:2: error: #error "C++20 or later required." npm error 13 | #error "C++20 or later required." ```
1 parent 377fd05 commit bddef25

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

codeserver/ubi9-python-3.12/get_code_server_rpm.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ if [[ "$ARCH" == "amd64" || "$ARCH" == "arm64" ||"$ARCH" == "ppc64le" ]]; then
2929
export ELECTRON_SKIP_BINARY_DOWNLOAD=1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
3030

3131
# install build dependencies
32-
dnf install -y jq patch libtool rsync gettext gcc-toolset-13 krb5-devel libX11-devel
32+
# https://access.redhat.com/support/policy/updates/rhel-app-streams-life-cycle
33+
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/developing_c_and_cpp_applications_in_rhel_9/assembly_additional-toolsets-for-development-rhel-9_developing-applications#cpp-compatibility-in-gcc-toolset-14_gcc-toolset-14
34+
dnf install -y jq patch libtool rsync gettext gcc-toolset-14 krb5-devel libX11-devel
3335

34-
. /opt/rh/gcc-toolset-13/enable
36+
# starting with node-22, c++20 is required
37+
. /opt/rh/gcc-toolset-14/enable
3538

3639
# build libxkbfile
3740
export UTIL_MACROS_VERSION=1.20.2

0 commit comments

Comments
 (0)