Skip to content

Commit

Permalink
Merge pull request #190542 from Homebrew/sntop-workaround
Browse files Browse the repository at this point in the history
sntop: workaround for newer Clang
  • Loading branch information
p-linnane authored Sep 14, 2024
2 parents b189bfd + 6a139e7 commit fceaf41
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Formula/s/sntop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ class Sntop < Formula
uses_from_macos "ncurses"

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--sysconfdir=#{etc}"
# Workaround for newer Clang
ENV.append_to_cflags "-Wno-implicit-int" if DevelopmentTools.clang_build_version >= 1403

system "./configure", "--mandir=#{man}",
"--sysconfdir=#{etc}",
*std_configure_args
etc.mkpath
bin.mkpath
man1.mkpath
Expand Down

0 comments on commit fceaf41

Please sign in to comment.