]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r236528:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 10 Jun 2012 13:28:14 +0000 (13:28 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 10 Jun 2012 13:28:14 +0000 (13:28 +0000)
commit9b05b26c8d1409727e02f443f38788f91faf64bb
tree95d5ecf649074116317516c3a20af987a366c116
parentc5ec59ca077d5ce62bb0cfaf9d5b1e09eff5da99
MFC r236528:

During buildworld and buildkernel, define EARLY_BUILD in the earlier
stages (build-tools, cross-tools, etc) of the build, so we can detect in
bsd.*.mk whether to pass compiler-specific flags to ${CC}.

In particular, this commit will allow using WITH_CLANG_IS_CC when the
base compiler is still gcc, and when ${CC}, ${CXX} and ${CPP} are left
at their defaults.  The early stages will then be built using gcc, and
no clang-specific flags will be passed to it.  The later stages will be
built as usual.

The EARLY_BUILD define can also serve other uses, such as building the
world stage C++ executables with libc++ instead of libstdc++: during the
early build stages, we cannot assume libc++ is already available, so we
must still build with libstdc++ at that time.

git-svn-id: svn://svn.freebsd.org/base/stable/9@236851 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Makefile.inc1
share/mk/bsd.sys.mk