]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r240468 (by brooks):
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 14 Nov 2012 20:27:17 +0000 (20:27 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 14 Nov 2012 20:27:17 +0000 (20:27 +0000)
commitbc00a91215ac7d7d2b2fc5a21f46956835f0a10a
tree320273a1393b338b6174977b36733f6b2ae44873
parent6e1c377b6f9befb7f111abfa427573aa1c25614f
MFC r240468 (by brooks):

  Introduce a new make variable COMPILER_TYPE that specifies what
  type of compiler is being used (currently clang or gcc).  COMPILER_TYPE
  is set in the new bsd.compiler.mk file based on the value of the CC
  variable or, should it prove informative, by running ${CC} --version
  and examining the output.

  To avoid negative performance impacts in the default case and correct
  value for COMPILER_TYPE type is determined and passed in the environment
  of submake instances while building world.

  Replace adhoc attempts at determining the compiler type by examining
  CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE.  This eliminates
  bootstrapping complications when first setting WITH_CLANG_IS_CC.

  Sponsored by: DARPA, AFRL
  Reviewed by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon
(with some modifications post review)

MFC r242633 (by brooks):

  Allow CC to be gcc46 or similar by matching gcc*.

  Don't test the value of the :M matches, either the string matches or does
  not.

MFC r242658:

  Fix typo in bsd.compiler.mk.

git-svn-id: svn://svn.freebsd.org/base/stable/9@243041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Makefile.inc1
share/mk/Makefile
share/mk/bsd.compiler.mk [new file with mode: 0644]
share/mk/bsd.sys.mk
sys/conf/kern.mk
sys/conf/kern.pre.mk
sys/conf/kmod.mk