-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
PaperChalice
committed
Sep 23, 2023
1 parent
3ce5ca0
commit 62b41bd
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
class Clang < Formula | ||
desc "C language family frontend for LLVM" | ||
homepage "https://clang.llvm.org" | ||
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-16.0.5/llvm-project-16.0.5.src.tar.xz" | ||
sha256 "37f540124b9cfd4680666e649f557077f9937c9178489cea285a672e714b2863" | ||
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.1/llvm-project-17.0.1.src.tar.xz" | ||
sha256 "b0e42aafc01ece2ca2b42e3526f54bebc4b1f1dc8de6e34f46a0446a13e882b9" | ||
license "Apache-2.0" => { with: "LLVM-exception" } | ||
|
||
bottle do | ||
|
@@ -20,10 +20,7 @@ class Clang < Formula | |
|
||
uses_from_macos "libxml2" | ||
|
||
patch do | ||
url "https://github.com/paperchalice/homebrew-private/raw/main/Patch/clang.diff" | ||
sha256 "c9dded641e078a22695d565e57084beeee925ec48a5e09b826b1cf4eb0ef0f9f" | ||
end | ||
patch :DATA | ||
|
||
def install | ||
Check failure on line 25 in Formula/clang.rb GitHub Actions / test-bot (macos-13)`brew install --verbose --build-bottle paperchalice/private/clang` failed on macOS Ventura (13)!
|
||
py_ver = Language::Python.major_minor_version("python3") | ||
|
@@ -40,7 +37,6 @@ def install | |
CLANG_LINK_CLANG_DYLIB=OFF | ||
CLANG_PYTHON_BINDINGS_VERSIONS=#{py_ver} | ||
DEFAULT_SYSROOT=#{default_sysroot} | ||
GCC_INSTALL_PREFIX=#{HOMEBREW_PREFIX} | ||
|
||
LLVM_BUILD_DOCS=ON | ||
LLVM_INCLUDE_DOCS=ON | ||
|
@@ -95,3 +91,12 @@ def install | |
assert_match "Hello World!", shell_output("./a.out") | ||
end | ||
end | ||
|
||
__END__ | ||
--- a/clang/tools/clang-shlib/CMakeLists.txt | ||
+++ b/clang/tools/clang-shlib/CMakeLists.txt | ||
@@ -1,3 +1,4 @@ | ||
+return() | ||
# Building libclang-cpp.so fails if LLVM_ENABLE_PIC=Off | ||
if (NOT LLVM_ENABLE_PIC) | ||
return() |