From 37db6decb11efab593e72ee74f4891d8a4880f85 Mon Sep 17 00:00:00 2001 From: jh-block Date: Wed, 29 Apr 2026 10:50:05 +0200 Subject: [PATCH] build: set LLAMA_STATIC_CRT for Windows CUDA (#8901) Signed-off-by: jh-block --- .github/workflows/build-cli.yml | 1 + .github/workflows/bundle-desktop-windows.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index 17c9d27abd..9e944f3272 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -157,6 +157,7 @@ jobs: shell: pwsh env: CUDA_COMPUTE_CAP: ${{ matrix.variant == 'cuda' && '80' || '' }} + LLAMA_STATIC_CRT: ${{ matrix.variant == 'cuda' && '1' || '' }} run: | Write-Output "Building Windows CLI executable..." if ("${{ matrix.variant }}" -eq "cuda") { diff --git a/.github/workflows/bundle-desktop-windows.yml b/.github/workflows/bundle-desktop-windows.yml index c9db1ba7de..b71fbde863 100644 --- a/.github/workflows/bundle-desktop-windows.yml +++ b/.github/workflows/bundle-desktop-windows.yml @@ -112,6 +112,7 @@ jobs: shell: pwsh env: CUDA_COMPUTE_CAP: ${{ inputs.windows_variant == 'cuda' && '80' || '' }} + LLAMA_STATIC_CRT: ${{ inputs.windows_variant == 'cuda' && '1' || '' }} run: | Write-Output "Building Windows executable..." if ("${{ inputs.windows_variant }}" -eq "cuda") {