<div dir="rtl"><div dir="ltr">Do you mean when clang is being built or when clang compiles something?</div><div dir="ltr">The first is in the build environment. </div><div dir="ltr">The second depends upon the target, there are functions in InitHeaderSearch.cpp that try to locate the include dirs. The libraries come with the linker and linker switches since clang doesn't link by itself.</div>
<div dir="ltr"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/10/10 James Gregurich <span dir="ltr"><<a href="mailto:bayoubengal@mac.com" target="_blank">bayoubengal@mac.com</a>></span></div>
<blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex"><div style="word-wrap:break-word"><div>Out of curiosity, how does clang determine what standard C libraries and headers to use during a build? Is that documented anywhere? I did a quick google search to see I saw that mechanism discussed, I don't see a good document coming up on the topic.</div>
<span class="HOEnZb"><font color="#888888"><div> </div><div>-James</div></font></span><div><div class="h5"><div><br></div><br><div><div>On Oct 10, 2013, at 11:30 AM, Yaron Keren <<a href="mailto:yaron.keren@gmail.com" target="_blank">yaron.keren@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="rtl"><div dir="ltr">FreeBSD has lots of good code.</div><div dir="ltr">MUSL <a href="http://www.musl-libc.org/" target="_blank">http://www.musl-libc.org/</a> is another library with BSD/MIT license.</div>
<div dir="ltr">MingW has Windows specific code usually in the public domain.</div>
<div dir="ltr"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/10/10 David Chisnall <span dir="ltr"><<a href="mailto:David.Chisnall@cl.cam.ac.uk" target="_blank">David.Chisnall@cl.cam.ac.uk</a>></span></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10 Oct 2013, at 17:03, Constantinos <<a href="mailto:conon246@gmail.com" target="_blank">conon246@gmail.com</a>> wrote:<br>
<br>
> Thanks, are any plans for a libc implementation as a llvm sub project? if any i will be glad to help on my free time.<br>
<br>
There are existing open source, permissively licensed, libc implementations. Derivatives of FreeBSD libc are used on Darwin (iOS / OS X), some OpenSolaris derviatives and Android. NetBSD and OpenBSD also have their own libc implementations that occasionally share code.<br>
<br>
We welcome contributors to FreeBSD libc, if you want to work on a C standard library implementation...<br>
<br>
David<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>