diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pocl.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/pocl.rb b/Library/Formula/pocl.rb index 1ab9b4595..c05c34416 100644 --- a/Library/Formula/pocl.rb +++ b/Library/Formula/pocl.rb @@ -10,6 +10,13 @@ class Pocl < Formula depends_on 'llvm' => 'with-clang' depends_on :libltdl + def patches + # 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 + DATA + end + def install ENV.j1 system "./configure", "--disable-debug", @@ -32,3 +39,21 @@ 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 \ |
