From 5166d846518df204841d57fdf736f56ed4a17e11 Mon Sep 17 00:00:00 2001 From: Odd Kiva <2375733-oddkiva@users.noreply.gitlab.com> Date: Tue, 21 Nov 2023 20:56:06 +0000 Subject: [PATCH] MAINT: fix build script on MacOS. --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index be45e3d22..9b8fc783c 100755 --- a/build.py +++ b/build.py @@ -188,7 +188,7 @@ def generate_project( my_cmake_prefix_paths.append(HALIDE_ROOT_PATH) elif SYSTEM == "Darwin": cmake_options.append("-D SARA_USE_HALIDE:BOOL=ON") - llvm_dir = subprocess.check_output(["brew", "--prefix", "llvm"]) + llvm_dir = subprocess.check_output(["brew", "--prefix", "llvm@16"]) llvm_dir = llvm_dir.decode(sys.stdout.encoding).strip() llvm_cmake_dir = pathlib.Path(llvm_dir) / "lib" / "cmake" / "llvm" cmake_options.append(f"-D LLVM_DIR={llvm_cmake_dir}")