Skip to content

Commit

Permalink
flang 19.1.1
Browse files Browse the repository at this point in the history
Also:
- remove the `zstd` and `zlib` dependencies since there's no actual
  linkage
- reduce the scope of the `llvm` method to a variable in `install`
  • Loading branch information
carlocab committed Oct 2, 2024
1 parent a4e64ff commit 22c68a0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Formula/f/flang.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Flang < Formula

Check notice on line 1 in Formula/f/flang.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

Bottle cache hit

Bottle for flang built at bb63fcc36e9 (Merge 09cd91beb32ff46fd5c7e1e0ff91158cdcb76ce5 into 224aaa5a83852cdaf5ed634ccb2d04ff0e866a0e, 2024-10-02)

Check notice on line 1 in Formula/f/flang.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

Bottle cache hit

Bottle for flang built at bb63fcc36e9 (Merge 09cd91beb32ff46fd5c7e1e0ff91158cdcb76ce5 into 224aaa5a83852cdaf5ed634ccb2d04ff0e866a0e, 2024-10-02)

Check notice on line 1 in Formula/f/flang.rb

View workflow job for this annotation

GitHub Actions / Linux

Bottle cache hit

Bottle for flang built at 7fe98ef5e10 (Merge 8cf2ba28cd8898edc3bb76b667168138a9b6d59b into e9baecfdd4218a6482507ee2f519fbb8014ca3b6, 2024-10-01)

Check notice on line 1 in Formula/f/flang.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

Bottle cache hit

Bottle for flang built at bb63fcc36e9 (Merge 09cd91beb32ff46fd5c7e1e0ff91158cdcb76ce5 into 224aaa5a83852cdaf5ed634ccb2d04ff0e866a0e, 2024-10-02)
desc "LLVM Fortran Frontend"
homepage "https://flang.llvm.org/"
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.0/llvm-project-19.1.0.src.tar.xz"
sha256 "5042522b49945bc560ff9206f25fb87980a9b89b914193ca00d961511ff0673c"
url "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.1/llvm-project-19.1.1.src.tar.xz"
sha256 "d40e933e2a208ee142898f85d886423a217e991abbcd42dd8211f507c93e1266"
# The LLVM Project is under the Apache License v2.0 with LLVM Exceptions
license "Apache-2.0" => { with: "LLVM-exception" }
head "https://github.com/llvm/llvm-project.git", branch: "main"
Expand All @@ -23,17 +23,12 @@ class Flang < Formula

depends_on "cmake" => :build
depends_on "llvm"
depends_on "zstd"
uses_from_macos "zlib"

def llvm
Formula["llvm"]
end

# Building with GCC fails at linking with an obscure error.
fails_with :gcc

def install
llvm = Formula["llvm"]
# NOTE: Setting `BUILD_SHARED_LIBRARIES=ON` causes the just-built flang to throw ICE.
args = %W[
-DCLANG_DIR=#{llvm.opt_lib}/cmake/clang
Expand Down

0 comments on commit 22c68a0

Please sign in to comment.