mirror of
https://github.com/aaif-goose/goose.git
synced 2026-06-01 22:09:18 +02:00
Fix CRT linkage in Windows CUDA build (#8987)
Signed-off-by: jh-block <jhugo@block.xyz>
This commit is contained in:
@@ -157,12 +157,10 @@ 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") {
|
||||
$cudaRustflagsConfig = 'target.x86_64-pc-windows-msvc.rustflags=["-C","target-feature=+crt-static"]'
|
||||
cargo build --config $cudaRustflagsConfig --release --target x86_64-pc-windows-msvc -p goose-cli --features cuda
|
||||
cargo build --release --target x86_64-pc-windows-msvc -p goose-cli --features cuda
|
||||
} else {
|
||||
cargo build --release --target x86_64-pc-windows-msvc -p goose-cli
|
||||
}
|
||||
|
||||
@@ -112,12 +112,10 @@ 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") {
|
||||
$cudaRustflagsConfig = 'target.x86_64-pc-windows-msvc.rustflags=["-C","target-feature=+crt-static"]'
|
||||
cargo build --config $cudaRustflagsConfig --release --target x86_64-pc-windows-msvc -p goose-server --features cuda
|
||||
cargo build --release --target x86_64-pc-windows-msvc -p goose-server --features cuda
|
||||
} else {
|
||||
cargo build --release --target x86_64-pc-windows-msvc -p goose-server
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user