Skip to content

Commit

Permalink
Merge pull request Homebrew#169895 from Homebrew/sparse-fails_with-block
Browse files Browse the repository at this point in the history
sparse: use fails_with block and restrict `gcc` to macOS
  • Loading branch information
chenrui333 authored Apr 23, 2024
2 parents f252f3f + 0f85988 commit 0244c2e
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 0244c2e

Please sign in to comment.