pocl: use upstream patch.

master
Mike McQuaid 2014-03-22 08:49:49 +00:00
parent 1783c6153c
commit 4f720bd3c7
1 changed files with 6 additions and 22 deletions

View File

@ -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 \