a7d84af890
This works similar to WITH_SYSTEM_COMPILER added in r300354. It only supports lld via WITH_LLD_BOOTSTRAP. When both SYSTEM_COMPILER and SYSTEM_LINKER logic passes then libclang will not build in cross-tools. If either check fails though then libclang is built. The .info is reworked to notify when libclang will be built since if either clang or lld needs to be rebuilt, but not the other, the notification can lead to confusion on why "clang is building". -fuse-ld= is not used with this method so some combinations of compiler and linker are expected to fail. A new 'make test-system-linker' target is added to see the logic results. Makefile.inc1: CROSS_BINUTILS_PREFIX support had to be moved higher up so that XLD could be set and MK_LLD_BOOTSTRAP disabled before checking SYSTEM_LINKER logic as done with SYSTEM_COMPILER. This also required moving where bsd.linker.mk was read since XLD needs to be set before parsing it. This creates a situation where src.opts.mk can not test LINKER_FEATURES or add LLD_BOOTSTAP to BROKEN_OPTIONS. Reviewed by: emaste (earlier version) Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D15894
17 lines
494 B
Plaintext
17 lines
494 B
Plaintext
.\" $FreeBSD$
|
|
Set to not opportunistically skip building a cross-linker during the
|
|
bootstrap phase of the build.
|
|
Normally, if the currently installed linker matches the planned bootstrap
|
|
linker type and revision, then it will not be built.
|
|
This does not prevent a linker from being built for installation though,
|
|
only for building one for the build itself.
|
|
The
|
|
.Va WITHOUT_LLD
|
|
and
|
|
.Va WITHOUT_BINUTILS
|
|
options control those.
|
|
.Pp
|
|
This option is only relevant when
|
|
.Va WITH_LLD_BOOTSTRAP
|
|
is set.
|