From f12a124c52b773d41b89e4e5c41dcfd50fbfb606 Mon Sep 17 00:00:00 2001 From: greepar Date: Sat, 20 Jun 2026 20:05:10 +0800 Subject: [PATCH] Use local Windows toolchain for ANGLE --- .github/workflows/nuget-static-graphics.yml | 1 + scripts/build-windows-static-graphics.ps1 | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/nuget-static-graphics.yml b/.github/workflows/nuget-static-graphics.yml index 325bbab..ede02ae 100644 --- a/.github/workflows/nuget-static-graphics.yml +++ b/.github/workflows/nuget-static-graphics.yml @@ -82,6 +82,7 @@ jobs: env: RID: ${{ matrix.rid }} TARGET_CPU: ${{ matrix.target_cpu }} + DEPOT_TOOLS_WIN_TOOLCHAIN: 0 run: .\scripts\build-windows-static-graphics.ps1 all - name: Upload Windows static archives diff --git a/scripts/build-windows-static-graphics.ps1 b/scripts/build-windows-static-graphics.ps1 index c80483a..1007ab1 100644 --- a/scripts/build-windows-static-graphics.ps1 +++ b/scripts/build-windows-static-graphics.ps1 @@ -16,6 +16,10 @@ $BuildJobs = if ($env:BUILD_JOBS) { $env:BUILD_JOBS } else { [Environment]::Proc $AnglePatchDir = if ($env:ANGLE_PATCH_DIR) { $env:ANGLE_PATCH_DIR } else { Join-Path $RootDir "External\NativeStatic\patches" } $SkiaDepsRetries = if ($env:SKIA_DEPS_RETRIES) { [int]$env:SKIA_DEPS_RETRIES } else { 3 } +if (-not $env:DEPOT_TOOLS_WIN_TOOLCHAIN) { + $env:DEPOT_TOOLS_WIN_TOOLCHAIN = "0" +} + function Require-Command($Name) { if (-not (Get-Command $Name -ErrorAction SilentlyContinue)) { throw "Missing required command: $Name"