Changeset View
Changeset View
Standalone View
Standalone View
head/Makefile.inc1
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
# Pull in compiler metadata from buildworld/toolchain if possible to avoid | # Pull in compiler metadata from buildworld/toolchain if possible to avoid | ||||
# running CC from bsd.compiler.mk. | # running CC from bsd.compiler.mk. | ||||
.if make(installworld) || make(install) || make(distributeworld) || \ | .if make(installworld) || make(install) || make(distributeworld) || \ | ||||
make(stageworld) | make(stageworld) | ||||
.-include "${OBJTOP}/compiler-metadata.mk" | .-include "${OBJTOP}/compiler-metadata.mk" | ||||
.endif | .endif | ||||
# Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. | # Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. Pull it from the | ||||
.include <bsd.compiler.mk> | # tree to be friendlier to foreign OS builds. It's safe to do so unconditionally | ||||
# here since we will always have the right make, unlike in src/Makefile | |||||
.include "share/mk/bsd.compiler.mk" | |||||
.include "share/mk/src.opts.mk" | .include "share/mk/src.opts.mk" | ||||
# Check if there is a local compiler that can satisfy as an external compiler. | # Check if there is a local compiler that can satisfy as an external compiler. | ||||
# Which compiler is expected to be used? | # Which compiler is expected to be used? | ||||
.if ${MK_CLANG_BOOTSTRAP} == "yes" | .if ${MK_CLANG_BOOTSTRAP} == "yes" | ||||
WANT_COMPILER_TYPE= clang | WANT_COMPILER_TYPE= clang | ||||
.elif ${MK_GCC_BOOTSTRAP} == "yes" | .elif ${MK_GCC_BOOTSTRAP} == "yes" | ||||
WANT_COMPILER_TYPE= gcc | WANT_COMPILER_TYPE= gcc | ||||
▲ Show 20 Lines • Show All 2,911 Lines • Show Last 20 Lines |