<p dir="ltr">Are there situations when blocks support is missing in Clang?</p>
<div class="gmail_quote">On Oct 11, 2013 1:43 AM, "Iain Sandoe" <<a href="mailto:iain@codesourcery.com">iain@codesourcery.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
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.<br>
<br>
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.<br>

<br>
The same checkout now builds with both gcc-4.8 and clang for both 'cmake' and 'configure' (LLVM, clang and compiler-rt).<br>
<br>
Iain<br>
<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div>