diff options
author | brooks <brooks@FreeBSD.org> | 2012-09-13 16:00:46 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2012-09-13 16:00:46 +0000 |
commit | f17cb55447d48bc158b5154afa555cbb98793552 (patch) | |
tree | 026ab7b76d6035ab651e3761d73e9f9f465ed976 /share/mk/Makefile | |
parent | 1e4174de1a4f6a3cd6d80a545ec7187ecc402d68 (diff) | |
download | FreeBSD-src-f17cb55447d48bc158b5154afa555cbb98793552.zip FreeBSD-src-f17cb55447d48bc158b5154afa555cbb98793552.tar.gz |
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 after: 2 weeks
Diffstat (limited to 'share/mk/Makefile')
-rw-r--r-- | share/mk/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/mk/Makefile b/share/mk/Makefile index 64c6549..5bab862 100644 --- a/share/mk/Makefile +++ b/share/mk/Makefile @@ -3,7 +3,8 @@ FILES= bsd.README FILES+= bsd.arch.inc.mk -FILES+= bsd.compat.mk bsd.cpu.mk bsd.dep.mk bsd.doc.mk bsd.dtrace.mk +FILES+= bsd.compat.mk bsd.compiler.mk bsd.cpu.mk +FILES+= bsd.dep.mk bsd.doc.mk bsd.dtrace.mk FILES+= bsd.endian.mk FILES+= bsd.files.mk bsd.crunchgen.mk bsd.incs.mk bsd.info.mk bsd.init.mk FILES+= bsd.kmod.mk |