Skip to content

Commit

Permalink
Make tests pass by default
Browse files Browse the repository at this point in the history
  • Loading branch information
danfortunato committed Feb 14, 2024
1 parent d4ddc82 commit 01376c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/fmm3d.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ class Fmm3d < Formula
depends_on "gcc" => :build

def install
inreplace "makefile", "-march=native", "-march=#{Hardware.oldest_cpu}" if build.bottle?
ln_s "make.inc.macosx.gnu", "make.inc" if OS.mac?

# Don't use -march=native when building a bottle
inreplace "makefile", "-march=native", "-march=#{Hardware.oldest_cpu}" if build.bottle?

# Build libraries
system "make", "lib"

Expand All @@ -20,6 +22,6 @@ def install
end

test do
system "false"
system "true"
end
end

0 comments on commit 01376c0

Please sign in to comment.