From 4a57a4c76ba7064af869b2ee6c7cea1bbe455b9f Mon Sep 17 00:00:00 2001 From: Jan Svabenik Date: Wed, 18 Mar 2026 13:47:44 +0100 Subject: [PATCH] Add cuda-mingw lib path to build script --- build-sdrplay.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build-sdrplay.ps1 b/build-sdrplay.ps1 index 7e905ac..fe270af 100644 --- a/build-sdrplay.ps1 +++ b/build-sdrplay.ps1 @@ -31,8 +31,15 @@ if (Test-Path $cudaBin) { $env:PATH = "$cudaBin;" + $env:PATH } +$cudaMingw = Join-Path $PSScriptRoot 'cuda-mingw' +if (Test-Path $cudaMingw) { + $env:CGO_LDFLAGS = "$env:CGO_LDFLAGS -L$cudaMingw" +} + Write-Host "Building with SDRplay + cuFFT support..." -ForegroundColor Cyan go build -tags "sdrplay,cufft" ./cmd/sdrd +if ($LASTEXITCODE -ne 0) { throw "build failed" } + Write-Host "Done." -ForegroundColor Green