diff options
| author | Mikael Lepistö | 2014-02-26 20:05:24 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-03 12:18:54 +0000 |
| commit | 052aadb14b0e42ab942040a0dc7f3a20c5c8b4d8 (patch) | |
| tree | 382ec1cd4fed9d89bba82742862ca21b8b8eaead /Library | |
| parent | 4ee0389724aedb737cff105a2af690bdd251006c (diff) | |
| download | homebrew-052aadb14b0e42ab942040a0dc7f3a20c5c8b4d8.tar.bz2 | |
pocl: fix invalid check in configure.
Wrongly recognized build mode of llvm in addition to optimization level -Os caused some invalid functionality. More details in https://github.com/pocl/pocl/issues/59.
Closes #27034.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -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 \ |
