Skip to content

Commit 37db6de

Browse files
authored
build: set LLAMA_STATIC_CRT for Windows CUDA (#8901)
Signed-off-by: jh-block <jhugo@block.xyz>
1 parent 0bb87da commit 37db6de

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-cli.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ jobs:
157157
shell: pwsh
158158
env:
159159
CUDA_COMPUTE_CAP: ${{ matrix.variant == 'cuda' && '80' || '' }}
160+
LLAMA_STATIC_CRT: ${{ matrix.variant == 'cuda' && '1' || '' }}
160161
run: |
161162
Write-Output "Building Windows CLI executable..."
162163
if ("${{ matrix.variant }}" -eq "cuda") {

.github/workflows/bundle-desktop-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
shell: pwsh
113113
env:
114114
CUDA_COMPUTE_CAP: ${{ inputs.windows_variant == 'cuda' && '80' || '' }}
115+
LLAMA_STATIC_CRT: ${{ inputs.windows_variant == 'cuda' && '1' || '' }}
115116
run: |
116117
Write-Output "Building Windows executable..."
117118
if ("${{ inputs.windows_variant }}" -eq "cuda") {

0 commit comments

Comments
 (0)