Skip to content

Commit

Permalink
add in required llvm_config env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatch committed Nov 30, 2023
1 parent 4bceaaa commit d110b2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Formula/pyside2@5.15.11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ def install
# This is a workaround for current problems with Shiboken2
# ENV["HOMEBREW_INCLUDE_PATHS"] = ENV["HOMEBREW_INCLUDE_PATHS"].sub(Formula["qt@5"].include, "")

ENV["LLVM_CONFIG"] = Formula["llvm@15"].opt_bin/"llvm-config"
ENV.append_path "CMAKE_PREFIX_PATH", Formula["qt@5"].opt_lib
system "cmake", "-S", ".", "-B", "build",
"-DPYTHON_EXECUTABLE=#{which(python3)}",
"-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}",
"-DFORCE_LIMITED_API=no",
"-DFORCE_LIMITED_API=NO",
*std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
Expand Down
4 changes: 2 additions & 2 deletions Formula/shiboken2@5.15.11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Shiboken2AT51511 < Formula

depends_on "cmake" => :build
depends_on "python@3.11" => :build
depends_on "llvm"
depends_on "llvm@15"
depends_on "numpy"
depends_on "qt@5"

Expand All @@ -40,7 +40,7 @@ def install
[rpath, rpath(source: shiboken2_module)]
end

ENV["LLVM_INSTALL_DIR"] = Formula["llvm"].opt_prefix
ENV["LLVM_INSTALL_DIR"] = Formula["llvm@15"].opt_prefix

ENV.append_path "CMAKE_PREFIX_PATH", Formula["qt@5"].opt_lib

Expand Down

0 comments on commit d110b2f

Please sign in to comment.