diff --git a/Formula/pocl.rb b/Formula/pocl.rb index a1d28871a39..913d30620a8 100644 --- a/Formula/pocl.rb +++ b/Formula/pocl.rb @@ -10,10 +10,12 @@ class Pocl < Formula depends_on 'llvm' => 'with-clang' depends_on :libltdl - # Check if ndebug flag is required for compiling pocl didn't work on osx - # for some reason. Information if bug is fixed is found from - # https://github.com/pocl/pocl/issues/59 - patch :DATA + # Check if ndebug flag is required for compiling pocl didn't work on osx. + # https://github.com/pocl/pocl/pull/65 + patch do + url "https://github.com/pocl/pocl/commit/fa86bf.patch" + sha1 "0498e60449653c2e600c4896c566dce4ec7c2c72" + end def install ENV.j1 @@ -37,21 +39,3 @@ class Pocl < Formula system "pkg-config pocl --modversion | grep #{version}" end end - -__END__ -diff --git a/configure b/configure -index 01d3e24..55bf55c 100755 ---- a/configure -+++ b/configure -@@ -18375,6 +18375,11 @@ else - LLVM_HAS_ASSERTIONS_FALSE= - fi - -+# Hardcoded information that llvm compiled by homebrew has asserts -+# for some reason test above did not give correct result -+# https://github.com/pocl/pocl/issues/59 -+LLVM_HAS_ASSERTIONS_TRUE= -+LLVM_HAS_ASSERTIONS_FALSE='#' - - fi - rm -f core conftest.err conftest.$ac_objext \