Skip to content

Commit

Permalink
chakra: revision bump to migrate to icu4c@76
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Oct 31, 2024
1 parent 834a649 commit 841ec5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Formula/c/chakra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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}
Expand Down

0 comments on commit 841ec5c

Please sign in to comment.