Skip to content

Commit

Permalink
flang
Browse files Browse the repository at this point in the history
  • Loading branch information
paperchalice committed Mar 25, 2024
1 parent de60b99 commit eef341f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Formula/llvm/flang.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
class Flang < Formula
desc "Fortran front end for LLVM"
homepage "https://flang.llvm.org"
url "https://github.com/llvm/llvm-project.git",
tag: "llvmorg-14.0.0",
revision: "329fda39c507e8740978d10458451dcdb21563be"
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.2/llvm-project-18.1.2.src.tar.xz"
sha256 "51073febd91d1f2c3b411d022695744bda322647e76e0b4eb1918229210c48d5"
license "Apache-2.0" => { with: "LLVM-exception" }
head "https://github.com/llvm/llvm-project.git"

Expand All @@ -22,10 +21,14 @@ class Flang < Formula
uses_from_macos "libxml2"
uses_from_macos "zlib"

patch do
url "https://github.com/llvm/llvm-project/commit/7d55a3ba92368be55b392c20d623fde6ac82d86d.patch?full_index=1"
sha256 "e333769f9150482c357fcd45914b959543d29bfe86406f10f9c5d054bd269878"
end

def install

Check warning on line 29 in Formula/llvm/flang.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

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

Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/d35e58dd4a1fb4c3afef05cfcf6be4b64db0df6552da0eb9d46fc560a88f48ff--7d55a3ba92368be55b392c20d623fde6ac82d86d.patch ==> Verifying checksum for 'd35e58dd4a1fb4c3afef05cfcf6be4b64db0df6552da0eb9d46fc560a88f48ff--7d55a3ba92368be55b392c20d623fde6ac82d86d.patch' ==> Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.2/llvm-project-18.1.2.src.tar.xz Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/b604e62090d11d5f31962e09f42637ab9b05cece564ac866a94ec4adb7b1e959--llvm-project-18.1.2.src.tar.xz ==> Verifying checksum for 'b604e62090d11d5f31962e09f42637ab9b05cece564ac866a94ec4adb7b1e959--llvm-project-18.1.2.src.tar.xz' ==> Installing flang from paperchalice/private /usr/bin/env tar --extract --no-same-owner --file /Users/runner/Library/Caches/Homebrew/downloads/b604e62090d11d5f31962e09f42637ab9b05cece564ac866a94ec4adb7b1e959--llvm-project-18.1.2.src.tar.xz --directory /Users/runner/work/homebrew-private/build_farm/homebrew-unpack20240325-15050-a0ner2 /usr/bin/env cp -pR /Users/runner/work/homebrew-private/build_farm/homebrew-unpack20240325-15050-a0ner2/llvm-project-18.1.2.src/. /Users/runner/work/homebrew-private/build_farm/flang-20240325-15050-zjb33t/llvm-project-18.1.2.src ==> Patching cp -p /Users/runner/Library/Caches/Homebrew/downloads/d35e58dd4a1fb4c3afef05cfcf6be4b64db0df6552da0eb9d46fc560a88f48ff--7d55a3ba92368be55b392c20d623fde6ac82d86d.patch /Users/runner/work/homebrew-private/build_farm/flang--patch-20240325-15050-afo0b3/7d55a3ba92368be55b392c20d623fde6ac82d86d.patch ==> Applying 7d55a3ba92368be55b392c20d623fde6ac82d86d.patch patch -g 0 -f -p1 -i /Users/runner/work/homebrew-private/build_farm/flang--patch-20240325-15050-afo0b3/7d55a3ba92368be55b392c20d623fde6ac82d86d.patch patching file 'clang/docs/conf.py' patching file 'flang/docs/conf.py' patching file 'llvm/docs/conf.py' ==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/flang/18.1.2 -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_DIR=/usr/local/opt/clang/lib/cmake/clang -D LLVM_BUILD_DOCS=OFF -D LLVM_INCLUDE_DOCS=ON -D LLVM_ENABLE_SPHINX=ON -D MLIR_TABLEGEN_EXE=/usr/local/opt/mlir/bin/mlir-tblgen -D SPHINX_WARNINGS_AS_ERRORS=OFF -D SPHINX_OUTPUT_HTML=OFF -D SPHINX_OUTPUT_MAN=ON -S flang -B build Building Flang as a standalone project. -- The C compiler identification is AppleClang 15.0.0.15000040 -- The CXX compiler identification is AppleClang 15.0.0.15000040 -- 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") CMake Warning at /usr
cmake_args = std_cmake_args + %W[
-D BUILD_SHARED_LIBS=ON
-D CMAKE_CXX_STANDARD=17

-D CLANG_DIR=#{Formula["clang"].lib}/cmake/clang
-D LLVM_BUILD_DOCS=OFF
Expand All @@ -43,6 +46,7 @@ def install
system "cmake", *cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build", "--strip"
Utils::Gzip.compress(*Dir[man1/"*"])
end

test do
Expand Down

0 comments on commit eef341f

Please sign in to comment.