瀏覽代碼

Add cuda-mingw lib path to build script

master
Jan Svabenik 4 天之前
父節點
當前提交
4a57a4c76b
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      build-sdrplay.ps1

+ 7
- 0
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

Loading…
取消
儲存