Skip to content

Commit

Permalink
Merge pull request Homebrew#199096 from Homebrew/llvm-pkgconf
Browse files Browse the repository at this point in the history
llvm: migrate to `pkgconf`
  • Loading branch information
cho-m authored Nov 27, 2024
2 parents d927c58 + 2f4e4e7 commit 816b835
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Formula/l/llvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,11 @@ class Llvm < Formula
uses_from_macos "zlib"

on_linux do
depends_on "pkg-config" => :build
depends_on "pkgconf" => :build
depends_on "binutils" # needed for gold
depends_on "elfutils" # openmp requires <gelf.h>
end

# Fails at building LLDB
fails_with gcc: "5"

# Support simplified triples in version config files.
# https://github.com/llvm/llvm-project/pull/111387
patch do
Expand Down Expand Up @@ -767,10 +764,10 @@ def caveats

# This will fail if the clang bindings cannot find `libclang`.
with_env(PYTHONPATH: prefix/Language::Python.site_packages(python3)) do
system python3, "-c", <<~EOS
system python3, "-c", <<~PYTHON
from clang import cindex
cindex.Config().get_cindex_library()
EOS
PYTHON
end

unless versioned_formula?
Expand Down

0 comments on commit 816b835

Please sign in to comment.