<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">FYI, here are the instructions I sent to Maurice about teaching bjam to use Clang.<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>- Doug<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Douglas Gregor <<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">January 13, 2010 11:33:00 AM PST<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Maurice Gittens <<a href="mailto:mainmanmauricio@gmail.com">mainmanmauricio@gmail.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [cfe-dev] clang vs boost</b><br></span></div><br><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 13, 2010, at 12:41 AM, Maurice Gittens wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Tue, Jan 12, 2010 at 11:15 PM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com" target="_blank">dgregor@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><br>
<br></div>
Very cool. Just for kicks, I ran the testsuite for Boost.MPL, and we're passing all but 4 tests there. Not bad!<br>
<br>
To tackle Boost, it's worth starting with the regression tests for the lowest-level libraries and working upward. We're not going to get it all in one shot, and it's best to grow the set of libraries that works over time.<br>


<br></blockquote><div><br>Mind giving a few hints on how you convinced the boost build system to use the clang++?<br>The Boost Jam stuff is foreign to me.<br></div></div></blockquote><div><br></div><div>I'm using a Mac, so my ~/user-config.jam contains:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      using darwin : 4.2.1 : clang++ ;</span></div><div><br></div><div>which basically treats Clang like GCC with a funny name. It isn't perfect, because bjam inspects the output of</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>clang++ -dumpversion</div><div><br></div><div>and concludes that Clang is GCC 1.1 :)</div><div><br></div><div>On non-darwin platforms, something like</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>using gcc : 4.2.1 : clang++ ;</div><div><br></div><div>should work.</div><div><br></div><div>That all assumes that clang++ is in your path; otherwise, use a full pathname.</div><div><br></div><div>Once we get more working, it's probably worth teaching bjam and Boost.Config about Clang. GCC emulation will only take us so far.</div><div><br></div><div>BTW, did you mean to send your message to the cfe-dev list as well? Others might want to use bjam with clang.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>- Doug</div></div></div></blockquote></div><br></div></body></html>