[Patch] use __BLOCKS__ in asan_mac.cc to detect blocks availability

Alexander Potapenko glider at google.com
Wed Nov 6 19:52:26 PST 2013


Are there situations when blocks support is missing in Clang?
On Oct 11, 2013 1:43 AM, "Iain Sandoe" <iain at codesourcery.com> wrote:

> Hi,
>
> I found today (on OSX10.8) that with cmake using gcc-4.8 as the bootstrap
> I was getting a fail building asan-mac.cc, related to use of blocks syntax.
>  The same checkout builds fine using autoconf/make.
>
> In asan-mac.cc, availability of blocks is currently tested by
> !defined(MISSING_BLOCKS_SUPPORT) - which is apparently not set in the cmake
> process - the attached trivial patch changes this to use
> "defined(__BLOCKS__)" instead.
>
> The same checkout now builds with both gcc-4.8 and clang for both 'cmake'
> and 'configure' (LLVM, clang and compiler-rt).
>
> Iain
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131107/dc0310a5/attachment.html>


More information about the llvm-commits mailing list