From 841ec5c9e20c01671dab3ae33a86fb6782e0cf75 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 31 Oct 2024 09:31:59 -0400 Subject: [PATCH] chakra: revision bump to migrate to `icu4c@76` --- Formula/c/chakra.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Formula/c/chakra.rb b/Formula/c/chakra.rb index 0db37f360766..39607c9789e4 100644 --- a/Formula/c/chakra.rb +++ b/Formula/c/chakra.rb @@ -2,7 +2,7 @@ class Chakra < Formula desc "Core part of the JavaScript engine that powers Microsoft Edge" homepage "https://github.com/chakra-core/ChakraCore" license "MIT" - revision 8 + revision 9 head "https://github.com/chakra-core/ChakraCore.git", branch: "master" stable do @@ -43,7 +43,7 @@ class Chakra < Formula end depends_on "cmake" => :build - depends_on "icu4c@75" + depends_on "icu4c@76" uses_from_macos "llvm" => :build uses_from_macos "python" => :build @@ -56,6 +56,9 @@ def install # Use ld_classic to work around 'ld: Assertion failed: (0 && "lto symbol should not be in layout")' ENV.append "LDFLAGS", "-Wl,-ld_classic" if DevelopmentTools.clang_build_version >= 1500 + # Workaround to build with ICU 76+ + ENV.append_to_cflags "-DU_SHOW_CPLUSPLUS_HEADER_API=0" + icu4c_dep = deps.find { |dep| dep.name.match?(/^icu4c(@\d+)?$/) } args = %W[ --custom-icu=#{icu4c_dep.to_formula.opt_include}