Skip to content

Commit

Permalink
sparse: use fails_with block and restrict gcc to macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Cho <[email protected]>
  • Loading branch information
cho-m committed Apr 23, 2024
1 parent 20b76ff commit 0f85988
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Formula/s/sparse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ class Sparse < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "8c282a77e53c828abe22a69af0b1dd9cb124b333344f9be1b0f0f3d0a55a3fb0"
end

depends_on "gcc" if DevelopmentTools.clang_build_version < 1100
on_macos do
depends_on "gcc" if DevelopmentTools.clang_build_version < 1100
end

# error: use of unknown builtin '__builtin_clrsb'
fails_with :clang if DevelopmentTools.clang_build_version < 1100
fails_with :clang do
build 1099
cause "error: use of unknown builtin '__builtin_clrsb'"
end

def install
# BSD "install" does not understand the GNU -D flag.
Expand Down

0 comments on commit 0f85988

Please sign in to comment.