11class Halide < Formula
22 desc "Language for fast, portable data-parallel computation"
33 homepage "https://halide-lang.org"
4+ url "https://github.com/halide/Halide/archive/refs/tags/v21.0.0.tar.gz"
5+ sha256 "aa6b6f5e89709ca6bc754ce72b8b13b2abce0d6b001cb2516b1c6f518f910141"
46 license "MIT"
5- revision 1
6-
7- stable do
8- url "https://github.com/halide/Halide/archive/refs/tags/v19.0.0.tar.gz"
9- sha256 "83bae1f0e24dc44d9d85014d5cd0474df2dd03975680894ce3fafd6e97dffee2"
10-
11- depends_on "lld@19"
12- depends_on "llvm@19" # TODO: Use `lld`/`llvm` in both stable and head in Halide 20
13- end
7+ head "https://github.com/halide/Halide.git" , branch : "main"
148
159 livecheck do
1610 url :stable
@@ -28,18 +22,13 @@ class Halide < Formula
2822 sha256 cellar : :any_skip_relocation , x86_64_linux : "559910d964d788f02580e34bb3483e083f4a292cd9cfb3ee52ee8d6fe0d76c24"
2923 end
3024
31- head do
32- url "https://github.com/halide/Halide.git" , branch : "main"
33-
34- depends_on "lld"
35- depends_on "llvm"
36- end
37-
3825 depends_on "cmake" => :build
3926 depends_on "pybind11" => :build
4027 depends_on "flatbuffers"
4128 depends_on "jpeg-turbo"
4229 depends_on "libpng"
30+ depends_on "lld"
31+ depends_on "llvm"
43324433 depends_on "wabt"
4534
@@ -52,6 +41,9 @@ def python3
5241 end
5342
5443 def install
44+ # Disable SVE feature as broken: https://github.com/halide/Halide/issues/8529
45+ inreplace "src/Target.cpp" , /^\s *initial_features.push_back\( Target::SVE/ , "// \\ 0"
46+
5547 llvm = deps . map ( &:to_formula ) . find { |f | f . name . match? ( /^llvm(@\d +(\. \d +)*)?$/ ) }
5648 site_packages = prefix /Language ::Python . site_packages ( python3 )
5749 rpaths = [ rpath , rpath ( source : site_packages /"halide" ) ]
0 commit comments