Changeset View
Changeset View
Standalone View
Standalone View
head/Makefile.inc1
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.endif | .endif | ||||
# Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. Pull it from the | # Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. Pull it from the | ||||
# tree to be friendlier to foreign OS builds. It's safe to do so unconditionally | # 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 | # here since we will always have the right make, unlike in src/Makefile | ||||
# Don't include bsd.linker.mk yet until XBINUTILS is handled (after src.opts.mk) | # Don't include bsd.linker.mk yet until XBINUTILS is handled (after src.opts.mk) | ||||
_NO_INCLUDE_LINKERMK= t | _NO_INCLUDE_LINKERMK= t | ||||
# We also want the X_COMPILER* variables if we are using an external toolchain. | |||||
_WANT_TOOLCHAIN_CROSS_VARS= t | |||||
.include "share/mk/bsd.compiler.mk" | .include "share/mk/bsd.compiler.mk" | ||||
.undef _NO_INCLUDE_LINKERMK | .undef _NO_INCLUDE_LINKERMK | ||||
.undef _WANT_TOOLCHAIN_CROSS_VARS | |||||
# src.opts.mk depends on COMPILER_FEATURES | # src.opts.mk depends on COMPILER_FEATURES | ||||
.include "share/mk/src.opts.mk" | .include "share/mk/src.opts.mk" | ||||
.if ${TARGET} == ${MACHINE} | .if ${TARGET} == ${MACHINE} | ||||
TARGET_CPUTYPE?=${CPUTYPE} | TARGET_CPUTYPE?=${CPUTYPE} | ||||
.else | .else | ||||
TARGET_CPUTYPE?= | TARGET_CPUTYPE?= | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.endfor | .endfor | ||||
# If a full path to an external linker is given, don't build lld. | # If a full path to an external linker is given, don't build lld. | ||||
.if ${XLD:M/*} | .if ${XLD:M/*} | ||||
MK_LLD_BOOTSTRAP= no | MK_LLD_BOOTSTRAP= no | ||||
.endif | .endif | ||||
# We also want the X_LINKER* variables if we are using an external toolchain. | |||||
_WANT_TOOLCHAIN_CROSS_VARS= t | |||||
.include "share/mk/bsd.linker.mk" | .include "share/mk/bsd.linker.mk" | ||||
.undef _WANT_TOOLCHAIN_CROSS_VARS | |||||
# Begin WITH_SYSTEM_COMPILER / WITH_SYSTEM_LD | # Begin WITH_SYSTEM_COMPILER / WITH_SYSTEM_LD | ||||
# WITH_SYSTEM_COMPILER - Pull in needed values and make a decision. | # WITH_SYSTEM_COMPILER - Pull in needed values and make a decision. | ||||
# 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" | ||||
▲ Show 20 Lines • Show All 2,920 Lines • Show Last 20 Lines |