From e7c11a7b75230ac311a8aa91a48767af8ab4742a Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Tue, 23 Apr 2024 17:00:47 -0400 Subject: [PATCH] spice-protocol: remove `gcc` test dependency Signed-off-by: Michael Cho --- Formula/s/spice-protocol.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Formula/s/spice-protocol.rb b/Formula/s/spice-protocol.rb index 3648eb03b2f50..d965388733cba 100644 --- a/Formula/s/spice-protocol.rb +++ b/Formula/s/spice-protocol.rb @@ -17,11 +17,6 @@ class SpiceProtocol < Formula depends_on "meson" => :build depends_on "ninja" => :build - on_linux do - # Test fails on gcc-5: spice/macros.h:68:32: error: expected '}' before '__attribute__' - depends_on "gcc" => :test - end - def install system "meson", "setup", "build", *std_meson_args system "meson", "compile", "-C", "build", "--verbose" @@ -36,13 +31,7 @@ def install } EOS - cc = if OS.mac? - ENV.cc - else - Formula["gcc"].opt_bin/"gcc-#{Formula["gcc"].any_installed_version.major}" - end - - system cc, "test.cpp", "-I#{include}/spice-1", "-o", "test" + system ENV.cc, "test.cpp", "-I#{include}/spice-1", "-o", "test" system "./test" end end