aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authornibbles 2bits2012-03-25 22:51:03 -0700
committerJack Nagel2012-03-26 14:36:17 -0500
commit8eda089710622fa80a3445c713c6200d3baae4ae (patch)
tree405ff390344de00bacb154c9811b257a2b8ed831 /Library/Formula
parenta0407caa661ae1cf9334438ae747459a13ef2e86 (diff)
downloadhomebrew-8eda089710622fa80a3445c713c6200d3baae4ae.tar.bz2
bdw-gc: fix for XCode-4.3 and Clang
On their github site, the devs fix the compile error with Clang in the master of the release branch. Put that patch inline. Fixes compile error with Clang, Lion, XCode-4.3.2. Passes make check. Closes #11206. Closes #10453. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bdw-gc.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/bdw-gc.rb b/Library/Formula/bdw-gc.rb
index ab8ff5539..c61a47cb1 100644
--- a/Library/Formula/bdw-gc.rb
+++ b/Library/Formula/bdw-gc.rb
@@ -9,6 +9,8 @@ class BdwGc < Formula
# fix inline ASM issues with LLVM and Makefile double-install
# both fixes already upstream
+ # Third patch is upstream, https://github.com/ivmai/bdwgc/commit/c285b29
+ # and fixes compile with Clang when XCode-4.3. Remove at gc-7.2alpha7.
def patches
DATA
end
@@ -73,3 +75,17 @@ index 09dea13..1f4356e 100644
include/gc_inline.h include/gc_mark.h include/gc_cpp.h \
include/weakpointer.h include/new_gc_alloc.h \
include/gc_allocator.h include/gc_backptr.h include/gc_gcj.h \
+diff --git a/misc.c b/misc.c
+index 2fd4166..8db6085 100644
+--- a/misc.c
++++ b/misc.c
+@@ -930,7 +930,8 @@ GC_API void GC_CALL GC_init(void)
+ GC_STATIC_ASSERT((word)(-1) > (word)0);
+ /* word should be unsigned */
+ # endif
+-# if !defined(__BORLANDC__) && !defined(__CC_ARM) /* Workaround */
++# if !defined(__BORLANDC__) && !defined(__CC_ARM) \
++ && !(defined(__clang__) && defined(X86_64)) /* Workaround */
+ GC_STATIC_ASSERT((ptr_t)(word)(-1) > (ptr_t)0);
+ /* Ptr_t comparisons should behave as unsigned comparisons. */
+ # endif