]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 232322:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 17 Mar 2012 22:29:05 +0000 (22:29 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 17 Mar 2012 22:29:05 +0000 (22:29 +0000)
commit61fe77c5c9eb33f033bd89d869b05ce6dcd5fd5f
tree89f02cfda33ac3c44b9ab51337550a52d03dec68
parentdbd139fac4ad5b6fa61cc48e26b6c72e952db44b
MFC 232322:
  Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, that
  installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp.

  Note this does *not* disable building and installing gcc, which will
  still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp.  If
  you want to disable gcc completely, you must use WITHOUT_GCC.

MFC 232323:
  Regenerate src.conf(5) after r232322.

MFC 232477:
  In r232322, I forgot one case where a check for MK_CLANG_IS_CC was
  needed, in sys/conf/kern.pre.mk.  Add it now.

MFC 232522:
  Fix a thinko in r232322, where gcc (and its tools) are not built during
  the cross-tools stage, if CC=clang and WITH_CLANG_IS_CC is not set.

  This causes no 'cc' to be installed in the temporary cross-tools tree,
  making lint fall over later in the build, because it ignores ${CC} and
  attempts to run 'cc' anyway.

  To fix this, only skip building gcc during cross-tools, if WITHOUT_GCC
  is set, or if WITH_CLANG_IS_CC is set.

  Pointy hat to: dim

git-svn-id: svn://svn.freebsd.org/base/stable/9@233099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
13 files changed:
Makefile.inc1
gnu/usr.bin/cc/c++/Makefile
gnu/usr.bin/cc/cc/Makefile
gnu/usr.bin/cc/cpp/Makefile
gnu/usr.bin/cc/cpp/gcpp.1 [new file with mode: 0644]
share/man/man5/src.conf.5
share/mk/bsd.own.mk
share/mk/bsd.sys.mk
sys/conf/kern.mk
sys/conf/kern.pre.mk
sys/conf/kmod.mk
tools/build/options/WITH_CLANG_IS_CC [new file with mode: 0644]
usr.bin/clang/clang/Makefile