From 07fb4b76260881509db679b4da1fecb70d28dfe2 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 6 Oct 2022 13:16:29 +0800 Subject: [PATCH] halide: remove unnecessary workaround This was fixed in #112154. --- Formula/halide.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Formula/halide.rb b/Formula/halide.rb index 1c87359720c4a..12cc9feee68db 100644 --- a/Formula/halide.rb +++ b/Formula/halide.rb @@ -31,9 +31,9 @@ class Halide < Formula end depends_on "cmake" => :build + depends_on "pybind11" => :build depends_on "jpeg-turbo" depends_on "libpng" - depends_on "pybind11" depends_on "python@3.10" fails_with gcc: "5" # LLVM is built with Homebrew GCC @@ -44,10 +44,6 @@ def install -DHalide_SHARED_LLVM=ON -DPYBIND11_USE_FETCHCONTENT=OFF ] - llvm = deps.find { |dep| dep.name.match?(/^llvm(@\d+)?$/) } - .to_formula - # Apple libLTO cannot parse our object files. - args << "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-lto_library,#{llvm.opt_lib/shared_library("libLTO")}" if OS.mac? system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args system "cmake", "--build", "build"