build(homebrew): force cuda on Linux (#5345)

This commit is contained in:
Dave Lane
2026-06-27 23:46:26 -04:00
committed by GitHub
parent 9f645a96a9
commit 02a920a0f2
3 changed files with 4 additions and 10 deletions

View File

@@ -43,7 +43,6 @@ class Sunshine < Formula
sha256 x86_64_linux: "0000000000000000000000000000000000000000000000000000000000000000"
end
option "with-cuda", "Enable CUDA support (Linux only)"
option "with-docs", "Enable docs build"
option "with-static-boost", "Enable static link of Boost libraries"
option "without-static-boost", "Disable static link of Boost libraries" # default option
@@ -63,7 +62,7 @@ class Sunshine < Formula
on_linux do
depends_on GCC_FORMULA => [:build, :test]
depends_on "gcovr" => [:build, :test]
depends_on "lizardbyte/homebrew/#{CUDA_FORMULA}" => :build if build.with? "cuda"
depends_on "lizardbyte/homebrew/#{CUDA_FORMULA}" => :build
depends_on "python3" => :build
depends_on "at-spi2-core"
depends_on "avahi"
@@ -231,12 +230,7 @@ class Sunshine < Formula
def add_cuda_args(args)
return unless OS.linux?
if build.with?("cuda")
configure_cuda(args)
else
args << "-DSUNSHINE_ENABLE_CUDA=OFF"
ohai "CUDA disabled"
end
configure_cuda(args)
end
def configure_cuda(args)