[cfe-dev] libc++ on Mac OS X 10.6

Howard Hinnant hhinnant at apple.com
Sun Oct 9 08:28:25 PDT 2011


On Oct 9, 2011, at 5:27 AM, Christopher Jefferson wrote:

> When trying to use libc++ on a trunk clang on Mac OS X 10.6, I get:
> 
> /llvm-bin/bin/clang++ temp.cc -stdlib=libc++
> clang: error: invalid deployment target for -stdlib=libc++ (requires Mac OS X 10.7 or later)
> 
> This used to work on 10.6. Was there a good reason for breaking this on 10.6, and is there any workaround?
> 
> I find this disappointing, as I had hoped the next release of clang, with libc++, would provide a good base-line C++0x compiler. However, I would really like not to require 10.7, as I know various people who do not intend to upgrade any time soon.

Sorry about that.  I've updated the instructions for building on 10.6.  Do:

$ export MACOSX_DEPLOYMENT_TARGET=10.6

prior to ./buildit

Howard




More information about the cfe-dev mailing list