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 1, 2024
1 parent e1e203d commit 8cf2ba2
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
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 8cf2ba2

Please sign in to comment.