From efb375f45215054effa03af441575958a068a111 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 27 Feb 2025 00:56:51 -0500 Subject: [PATCH] vtk: drop clang 1316 workaround --- Formula/v/vtk.rb | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Formula/v/vtk.rb b/Formula/v/vtk.rb index df9a053c7ec93..bfbfbee7645d7 100644 --- a/Formula/v/vtk.rb +++ b/Formula/v/vtk.rb @@ -47,19 +47,6 @@ class Vtk < Formula uses_from_macos "tcl-tk" uses_from_macos "zlib" - on_macos do - on_arm do - if DevelopmentTools.clang_build_version == 1316 - depends_on "llvm" => :build - - # clang: error: unable to execute command: Segmentation fault: 11 - # clang: error: clang frontend command failed due to signal (use -v to see invocation) - # Apple clang version 13.1.6 (clang-1316.0.21.2) - fails_with :clang - end - end - end - on_linux do depends_on "gl2ps" depends_on "libx11" @@ -73,8 +60,6 @@ def install odie "Try removing netCDF workaround!" if Formula["netcdf"].stable.version > "4.9.2" inreplace "CMake/FindNetCDF.cmake", "find_package(netCDF CONFIG QUIET)", "# \\0" - ENV.llvm_clang if DevelopmentTools.clang_build_version == 1316 && Hardware::CPU.arm? - python = "python3.13" qml_plugin_dir = lib/"qml/VTK.#{version.major_minor}" vtkmodules_dir = prefix/Language::Python.site_packages(python)/"vtkmodules" @@ -128,9 +113,6 @@ def install end test do - # Force use of Apple Clang on macOS that needs LLVM to build - ENV.clang if DevelopmentTools.clang_build_version == 1316 && Hardware::CPU.arm? - vtk_dir = lib/"cmake/vtk-#{version.major_minor}" vtk_cmake_module = vtk_dir/"VTK-vtk-module-find-packages.cmake" assert_match Formula["boost"].version.to_s, vtk_cmake_module.read, "VTK needs to be rebuilt against Boost!"