From 2b8134a202ef1741a569c27b8762cf3086ceef67 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Tue, 29 Oct 2024 14:22:26 +0100 Subject: [PATCH] fix(linux): build ppc64 (#2077) --- package_linux_reh.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/package_linux_reh.sh b/package_linux_reh.sh index 35d48ab1dab..00788b6692c 100755 --- a/package_linux_reh.sh +++ b/package_linux_reh.sh @@ -39,7 +39,7 @@ if [[ "${VSCODE_ARCH}" == "x64" || "${VSCODE_ARCH}" == "arm64" ]]; then elif [[ "${VSCODE_ARCH}" == "armhf" ]]; then VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-arm32v7" elif [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then - VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:focal-devtoolset-ppc64le" + VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME="vscodium/vscodium-linux-build-agent:bionic-devtoolset-ppc64le" export ELECTRON_SKIP_BINARY_DOWNLOAD=1 export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 export VSCODE_SYSROOT_REPO='VSCodium/vscode-linux-build-agent' @@ -72,6 +72,28 @@ if [[ -d "../patches/linux/reh/" ]]; then done fi +if [[ "${VSCODE_ARCH}" == "ppc64le" ]]; then + INCLUDES=$(cat < "$HOME/.gyp/include.gypi" +fi + for i in {1..5}; do # try 5 times npm ci --prefix build && break if [[ $i == 3 ]]; then