disable-sysroot.patch 1.0 KB

1234567891011121314151617181920212223
  1. diff --git a/build/azure-pipelines/linux/install.sh b/build/azure-pipelines/linux/install.sh
  2. index 57f5876..2d543e5 100755
  3. --- a/build/azure-pipelines/linux/install.sh
  4. +++ b/build/azure-pipelines/linux/install.sh
  5. @@ -7,10 +7,12 @@ yarn config set registry "$NPM_REGISTRY"
  6. -SYSROOT_ARCH=$VSCODE_ARCH
  7. -if [ "$SYSROOT_ARCH" == "x64" ]; then
  8. - SYSROOT_ARCH="amd64"
  9. +if [ "$npm_config_arch" != "ppc64" ]; then
  10. + SYSROOT_ARCH=$VSCODE_ARCH
  11. + if [ "$SYSROOT_ARCH" == "x64" ]; then
  12. + SYSROOT_ARCH="amd64"
  13. + fi
  14. +
  15. + export VSCODE_SYSROOT_DIR=$PWD/.build/sysroots
  16. + SYSROOT_ARCH="$SYSROOT_ARCH" node -e '(async () => { const { getVSCodeSysroot } = require("./build/linux/debian/install-sysroot.js"); await getVSCodeSysroot(process.env["SYSROOT_ARCH"]); })()'
  17. fi
  18. -export VSCODE_SYSROOT_DIR=$PWD/.build/sysroots
  19. -SYSROOT_ARCH="$SYSROOT_ARCH" node -e '(async () => { const { getVSCodeSysroot } = require("./build/linux/debian/install-sysroot.js"); await getVSCodeSysroot(process.env["SYSROOT_ARCH"]); })()'
  20. -
  21. if [ "$npm_config_arch" == "x64" ]; then