From 23cbc5372a7bb06b491fe906956d6523e2e6daf7 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 16 Oct 2010 22:46:44 +0000 Subject: Tidy up linker flags across all targets, specifically remove linking against stdc++, which was introduced in r2444 as a workaround for a bug in Clang 1.5 that failed to compile RegexKitLite. Take the approach suggested by the developer of RegexKitLite, which is to disable the macro that uses __attribute__((cleanup)), which trips the bug. Apparently it is only used for debugging purposes. See http://llvm.org/viewvc/llvm-project?view=rev&revision=103938 for the Clang fix. --- Source/RegexKitLite.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/RegexKitLite.m b/Source/RegexKitLite.m index dababa6a..a3e3dce1 100644 --- a/Source/RegexKitLite.m +++ b/Source/RegexKitLite.m @@ -165,8 +165,9 @@ typedef uint32_t RKLLookasideCache_t; #define RKL_EXPECTED(cond, expect) __builtin_expect((long)(cond), (expect)) #define RKL_PREFETCH(ptr) __builtin_prefetch(ptr) #define RKL_PREFETCH_UNICHAR(ptr, off) { const char *p = ((const char *)(ptr)) + ((off) * sizeof(UniChar)) + _RKL_PREFETCH_SIZE; RKL_PREFETCH(p); RKL_PREFETCH(p + _RKL_PREFETCH_SIZE); } -#define RKL_HAVE_CLEANUP -#define RKL_CLEANUP(func) RKL_ATTRIBUTES(cleanup(func)) +//#define RKL_HAVE_CLEANUP +//#define RKL_CLEANUP(func) RKL_ATTRIBUTES(cleanup(func)) +#define RKL_CLEANUP(func) #else // defined (__GNUC__) && (__GNUC__ >= 4) #define RKL_ATTRIBUTES(attr, ...) #define RKL_EXPECTED(cond, expect) (cond) -- cgit v1.2.3