valgrind: build on Xcode-only systems
This time, don't use lookbehind which Ruby 1.8.7 doesn't have. Closes Homebrew/homebrew#45851. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
1107da88c6
commit
5ed84e3f06
1 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,12 @@ class Valgrind < Formula
|
|||
end
|
||||
|
||||
system "./autogen.sh" if build.head?
|
||||
|
||||
# Look for headers in the SDK on Xcode-only systems: https://bugs.kde.org/show_bug.cgi?id=295084
|
||||
unless MacOS::CLT.installed?
|
||||
inreplace "coregrind/Makefile.in", %r{(\s)(?=/usr/include/mach/)}, '<\1>'+MacOS.sdk_path.to_s
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
system "make", "install"
|
||||
|
|
Loading…
Reference in a new issue