Skip to content

Commit 4c9e710

Browse files
adjusting a change I got wrong about the bin/lfortran call and fixing dependency order based on brew audit --strict report.
1 parent 4e5b293 commit 4c9e710

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Formula/lfortran.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class Lfortran < Formula
1313
depends_on "cmake" => :build
1414
depends_on "ninja" => :build
1515
depends_on "llvm"
16-
depends_on "zlib"
1716
depends_on "z3"
17+
depends_on "zlib"
1818

1919
def install
2020
cmake_args = std_cmake_args
@@ -27,13 +27,13 @@ def install
2727
end
2828

2929
test do
30-
system "bin/lfortran", "--version"
30+
system bin/"lfortran", "--version"
3131
(testpath/"hello.f90").write <<~EOS
3232
program hello
3333
print *, "Hello, World!"
3434
end
3535
EOS
36-
system "bin/lfortran", testpath/"hello.f90", "-o", testpath/"hello"
36+
system bin/"lfortran", testpath/"hello.f90", "-o", testpath/"hello"
3737
assert_path_exists testpath/"hello"
3838
system testpath/"hello"
3939
end

0 commit comments

Comments
 (0)