소스 검색

Add cuda-mingw lib path to build script

master
Jan Svabenik 3 일 전
부모
커밋
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

불러오는 중...
취소
저장