<div dir="ltr">On Fri, Dec 13, 2013 at 12:33 PM, Ryan Schmidt <span dir="ltr">&lt;<a href="mailto:ryandesign@macports.org" target="_blank">ryandesign@macports.org</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
On Dec 13, 2013, at 11:25, <a href="mailto:eborisch@macports.org">eborisch@macports.org</a> wrote:<br>
<br>&gt; +platform darwin {<br>
&gt; +    if {${os.major} &lt; 13} {<br>
&gt; +        # Build fails with clang: unsupported -stack-protector-buffer-size=4<br>
&gt; +        # (even though clang -help lists option)<br>
&gt; +        compiler.blacklist          clang<br>
<br>
This is probably wrong; you should probably base the blacklisting of clang on its version, not on the OS version. Use the compiler_blacklist_versions portgroup. Also list any affected MacPorts clang ports.<br>
</blockquote></div><br></div><div class="gmail_extra">Agreed, I was just trying to push some ports out of c++ lib limbo land. :)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Taking a look closer, I really want - in order to be as close to what the original option was doing, while still moving to libc++ - a clang that supports -fsanitize=address, which the OSX version doesn&#39;t:</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://www.opensource.apple.com/source/clang/clang-425.0.24/src/tools/clang/test/Driver/darwin-asan-nofortify.c">http://www.opensource.apple.com/source/clang/clang-425.0.24/src/tools/clang/test/Driver/darwin-asan-nofortify.c</a></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I was thinking of just setting the compiler to be macports-clang-3.3 (which does support it) and then adding the cxx_stdlib switch you also suggested for CXX11 support on/off. Does that sound reasonable?</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"> - Eric</div></div>