OSDN Git Service

Fix C++ on Darwin
authorDan Willemsen <dwillemsen@google.com>
Tue, 8 Mar 2016 23:25:02 +0000 (15:25 -0800)
committerDan Willemsen <dwillemsen@google.com>
Wed, 9 Mar 2016 04:15:21 +0000 (20:15 -0800)
commit441d646c6fd26050b6dcc405f63a1a948bfc6740
treec98bb6cae1bf18140310bee197e4bb0ed6d16b96
parent2a24bad8cc3bd862472835ca1cba332713763685
Fix C++ on Darwin

We've been including the system libc++ headers even if we're building
against our version of libc++. Stop doing that, and only add the headers
to our path if we're using the system libraries.

If nothing is specified, on recent OSX versions, libc++ is the default
c++ library instead of libstdc++. We've been explicitly including the
libc++ headers on all versions, but that breaks old versions. Force us
over to libc++, since the system libstdc++ does not support C++11, and
libc++ is still supported on our oldest version (10.8).

Change-Id: I1fccee8da0f425e10ccc9d3247ed40664eb6ada0
core/combo/HOST_darwin-x86.mk
core/combo/HOST_darwin-x86_64.mk
core/cxx_stl_setup.mk
core/ninja.mk