Skip to content

Commit

Permalink
Merge pull request #172902 from branchvincent/libprelude
Browse files Browse the repository at this point in the history
libprelude: fix build with latest CLT
  • Loading branch information
p-linnane authored May 27, 2024
2 parents a2a2676 + 8d41903 commit 18c990e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/lib/libprelude.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class Libprelude < Formula
end

depends_on "pkg-config" => :build
depends_on "python-setuptools" => :build
depends_on "[email protected]" => [:build, :test]
depends_on "gnutls"
depends_on "libgpg-error"
Expand All @@ -41,6 +40,9 @@ def python3
end

def install
# Work-around for build issue with Xcode 15.3
ENV.append_to_cflags "-Wno-int-conversion" if DevelopmentTools.clang_build_version >= 1500

ENV["HAVE_CXX"] = "yes"
args = %W[
--disable-silent-rules
Expand All @@ -61,7 +63,7 @@ def install
# Work around Homebrew's "prefix scheme" patch which causes non-pip installs
# to incorrectly try to write into HOMEBREW_PREFIX/lib since Python 3.10.
# This is done by manually install python bindings.
system python3, "-m", "pip", "install", *std_pip_args, "./bindings/python"
system python3, "-m", "pip", "install", *std_pip_args(build_isolation: true), "./bindings/python"
end

test do
Expand Down

0 comments on commit 18c990e

Please sign in to comment.