diff --git a/Formula/i/ispc.rb b/Formula/i/ispc.rb index 39e79c73c012e..f9ec358d72e49 100644 --- a/Formula/i/ispc.rb +++ b/Formula/i/ispc.rb @@ -1,10 +1,9 @@ class Ispc < Formula desc "Compiler for SIMD programming on the CPU" homepage "https://ispc.github.io" - url "https://github.com/ispc/ispc/archive/refs/tags/v1.24.0.tar.gz" - sha256 "a45ec5402d8a3b23d752125a083fa031becf093b8304ccec55b1c2f37b5479c3" + url "https://github.com/ispc/ispc/archive/refs/tags/v1.25.2.tar.gz" + sha256 "745cc8bcde26e63af2700f1811b66d2ca66b2844c8e2aa9ac19c12ab6a39b82a" license "BSD-3-Clause" - revision 1 # Upstream sometimes creates releases that use a stable tag (e.g., `v1.2.3`) # but are labeled as "pre-release" on GitHub, so it's necessary to use the @@ -20,14 +19,14 @@ class Ispc < Formula sha256 cellar: :any, arm64_ventura: "d490a9505d3fdcff68e78b98208818716f6a5d38982f7a65fd634094c4bd2bda" sha256 cellar: :any, sonoma: "80a689f14d9c006eb0301b64cccd6a5e7d23c84bce4637ae0c6d29fc66abec2d" sha256 cellar: :any, ventura: "a23c36580e65097630847b2c9ee3ca2815a5eddda847f3def225fbf4738f832b" - sha256 cellar: :any_skip_relocation, x86_64_linux: "dcd08c7b19eef4617e2c0c7cffa482deb8ad588bb46e2b1bc1852c146b041256" end depends_on "bison" => :build depends_on "cmake" => :build depends_on "flex" => :build - depends_on "python@3.12" => :build - depends_on "llvm@18" + depends_on "llvm" + + uses_from_macos "python" => :build on_linux do depends_on "tbb" @@ -40,13 +39,6 @@ def llvm end def install - # Force cmake to use our compiler shims instead of bypassing them. - inreplace "CMakeLists.txt", "set(CMAKE_C_COMPILER \"clang\")", "set(CMAKE_C_COMPILER \"#{ENV.cc}\")" - inreplace "CMakeLists.txt", "set(CMAKE_CXX_COMPILER \"clang++\")", "set(CMAKE_CXX_COMPILER \"#{ENV.cxx}\")" - - # Disable building of i686 target on Linux, which we do not support. - inreplace "cmake/GenerateBuiltins.cmake", "set(target_arch \"i686\")", "return()" unless OS.mac? - args = %W[ -DISPC_INCLUDE_EXAMPLES=OFF -DISPC_INCLUDE_TESTS=OFF