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

Alexey Samsonov samsonov at google.com
Wed Nov 6 15:18:34 PST 2013


Glider, can you take a look at this?

On Oct 10, 2013 2:43 PM, "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/20131106/f732572a/attachment.html>


More information about the llvm-commits mailing list