<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2016-10-08, at 10:03 PM, Stephen J. Butler wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">FYI, it's in the Xcode 8 release notes:<div><br></div><div><a href="https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html">https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html</a><br></div><div><br></div><div>I did a quick test file and it seems to compile with Apple clang. No clue on compatibility issues though.</div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><span class=""><br></span></blockquote></div></div></blockquote><div><br></div><div>Thanks!</div><div><br></div><br><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><span class="">
</span>Thanks for finding and sharing that information. It sounds like you could get TLS by using MacPorts clang instead of Xcode clang, but that it will be incompatible with whatever TLS implementation Apple eventually creates.<br>
</blockquote></div></div></blockquote><br></div><div><br></div>I had hoped it would be in the macports-clang-3.7 build I'm using, but it seems to error out.<div><br></div><div>However, I noticed this bit in the the libcxxabi port&nbsp;</div><div><br></div><div>libcxxabi-3.7.0.src/include/cxxabi.h</div><div><br></div><div><br></div><div><div>#ifdef __linux__</div><div>// Linux TLS support. Not yet an official part of the Itanium ABI.</div><div>// <a href="https://sourceware.org/glibc/wiki/Destructor%20support%20for%20thread_local%20variables">https://sourceware.org/glibc/wiki/Destructor%20support%20for%20thread_local%20variables</a></div><div>extern int __cxa_thread_atexit(void (*)(void *), void *, void *) throw();</div><div>#endif</div></div><div><br></div><div>and - if I open up that guard, it actually builds cleanly on MacOSX.</div><div><br></div><div>I wonder if TLS support was just disabled on all but Linux...perhaps I'll try installing this new version I just built and see what happens. --- after I back everything up :&gt;</div><div><br></div><div>Ken</div></body></html>