<div dir="ltr">I'm not aware of any difficulty with an older OS such as 10.6.8 as such, but there is a pretty fundamental thing that recent Clang/LLVM source code uses features from C++11, which the existing compiler on a 10.6.8 machine won't support.<div><br></div><div>Clang 3.4 supports C++11, but does not require it.</div><div>Clang 3.5 and later requires a C++11 compiler.</div><div><br></div><div>A quick internet search suggests that you can build Clang 3.4 with the system compiler on 10.6.8.</div><div><br></div><div>Once you have a working Clang 3.4 you can build later Clang versions. I'm not 100% sure whether 3.4 implements C++11 sufficiently bug free to compile Clang 3.8.</div><div><br></div><div>You could also of course look at installing/building a more recent gcc to build recent Clang with. Gcc 4.9 is the first version that does not label C++11 support as experimental.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 4, 2016 at 1:11 AM, ardi via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
One of my Macs is kept at 10.6.8 (with Xcode 3.2.6) because it's a<br>
system I still wish to support. However, I'd like to move to clang on<br>
it, if possible. I prefer to either install a precompiled binary<br>
distribution (if it exists) or compile it on my own, but for the<br>
moment I'd prefer to avoid installing it through macports.<br>
<br>
Looking at the LLVM releases downloads page, I see several downloads<br>
tagged "Darwin", but it doesn't specify what Darwin version is<br>
required for it to run (some of them say "Darwin 10.9", but is it<br>
Darwin 10.9 or OS X 10.9? On very older releases (the gcc front-end<br>
ones) I see Darwin10 binaries.<br>
<br>
I suppose there won't be any relatively recent binary distribution<br>
that I can use on Snow Leopard, so I guess I've to build it myself. In<br>
that case, should the 3.8.0 build out of the box? If not, is there any<br>
not too old release that would build out of the box? (when I say "out<br>
of the box", I mean that it passes all tests, and no custom patches<br>
are necessary).<br>
<br>
Thanks a lot in advance,<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>