]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MF11 r352638,r358076: correct Clang and lld version checks
authoremaste <emaste@FreeBSD.org>
Wed, 29 Apr 2020 18:59:37 +0000 (18:59 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 29 Apr 2020 18:59:37 +0000 (18:59 +0000)
commitf1f4319f47bdb083a3582f3f3f8d8fa4211d1bba
tree306cfaec314f5cc3fd91364d5ace5c9351bb9fb1
parentc12ba096ee85d5ec27de822df6d5d0899902c01b
MF11 r352638,r358076: correct Clang and lld version checks

r352638 (mhorne): Allow for compiler versions >= 10
r358076 (dim): Correctly recognize linker versions greater than 10.0.

These routines determine the host compiler and linker version, and caused
attempts to build 12.1-RELEASE on 13-CURRENT to fail after the latter was
updated to Clang 10.  The host compiler version was also misdetected on
11.3 although it seems not to have caused the same build failure there.

We don't guarantee such a build config to work, but it is used by FreeBSD
ports build processes.  As a result the fixes from stable/11 will be
included with the next set of advisories, and are being committed to the
releng branch now to unblock ports builds.

PR: 245973
Reported by: sbruno, antoine
Approved by: so
Errata: EN-20:10.build
Sponsored by: The FreeBSD Foundation
share/mk/bsd.compiler.mk
share/mk/bsd.linker.mk