Skip to content

Commit

Permalink
clang
Browse files Browse the repository at this point in the history
  • Loading branch information
PaperChalice committed Sep 23, 2023
1 parent 3ce5ca0 commit 62b41bd
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Formula/clang.rb
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
Expand All @@ -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

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

`brew install --verbose --build-bottle paperchalice/private/clang` failed on macOS Ventura (13)!

==> Fetching paperchalice/private/clang ==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-17.0.1/llvm-project-17.0.1.src.tar.xz Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/ef59603e2108d6f46b3e6551759202026e58895a914272d88d5784b12553d998--llvm-project-17.0.1.src.tar.xz ==> Verifying checksum for 'ef59603e2108d6f46b3e6551759202026e58895a914272d88d5784b12553d998--llvm-project-17.0.1.src.tar.xz' ==> Installing clang from paperchalice/private /usr/bin/env tar --extract --no-same-owner --file /Users/runner/Library/Caches/Homebrew/downloads/ef59603e2108d6f46b3e6551759202026e58895a914272d88d5784b12553d998--llvm-project-17.0.1.src.tar.xz --directory /Users/runner/work/homebrew-private/build_farm/d20230923-13894-q1foz /usr/bin/env cp -pR /Users/runner/work/homebrew-private/build_farm/d20230923-13894-q1foz/llvm-project-17.0.1.src/. /Users/runner/work/homebrew-private/build_farm/clang-20230923-13894-n8k9a9/llvm-project-17.0.1.src ==> Patching ==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/clang/17.0.1 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -D BUILD_SHARED_LIBS=ON -D CLANG_CONFIG_FILE_SYSTEM_DIR=/usr/local/etc/clang -D CLANG_CONFIG_FILE_USER_DIR=~/.config/clang -D CLANG_DEFAULT_CXX_STDLIB=libc++ -D CLANG_DEFAULT_LINKER=lld -D CLANG_DEFAULT_RTLIB=compiler-rt -D CLANG_DEFAULT_UNWINDLIB=libunwind -D CLANG_LINK_CLANG_DYLIB=OFF -D CLANG_PYTHON_BINDINGS_VERSIONS=3.11 -D DEFAULT_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D LLVM_BUILD_DOCS=ON -D LLVM_INCLUDE_DOCS=ON -D LLVM_ENABLE_SPHINX=ON -D LLVM_INSTALL_UTILS=ON=ON -D SPHINX_WARNINGS_AS_ERRORS=OFF -D SPHINX_OUTPUT_HTML=OFF -D SPHINX_OUTPUT_MAN=ON -S clang -B build -- The C compiler identification is AppleClang 14.0.3.14030022 -- The CXX compiler identification is AppleClang 14.0.3.14030022 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test HAVE_FFI_CALL -- Performing Test HAVE_FFI_CALL - Success -- Found FFI: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libffi.tbd -- Looking for histedit.h -- Looking for histedit.h - found -- Found LibEdit: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include (found version "2.11") -- Performing Test Terminfo_LINKABLE -- Performing Test Terminfo_LINKABLE - Success -- Found Terminfo: /usr/local/opt/ncurses/lib/libcurses.dylib -- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libz.tbd (found version "1.2.11") -- Found zstd: /usr/local/lib/libzstd.dylib -- Found LibXml2: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libxml2.tbd (found version "2.9.13") -- Found CURL: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libcurl.tbd (found version "7.87.0") -- Linker detection: ld64 -- Performing Test C_SUPPORTS_FPIC -- Performing Test C_SUPPORTS_FPIC - Success -- Performing Test CXX_SUPPORTS_FPIC -- Performing Test CXX_SUPPORTS_FPIC - Success -- Building with -fPIC -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success -- Performing Test C_SUPPORTS_WERROR_DATE_TIME -- Performing Test C_SUPPORTS_
py_ver = Language::Python.major_minor_version("python3")
Expand All @@ -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
Expand Down Expand Up @@ -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()

0 comments on commit 62b41bd

Please sign in to comment.