Page MenuHomeFreeBSD

Take LINKER_FREEBSD_VERSION from numerical field after dash
ClosedPublic

Authored by dim on Feb 15 2020, 12:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 27, 3:18 AM
Unknown Object (File)
Tue, Sep 23, 7:17 AM
Unknown Object (File)
Thu, Sep 18, 8:25 AM
Unknown Object (File)
Sep 8 2025, 1:00 PM
Unknown Object (File)
Sep 8 2025, 9:57 AM
Unknown Object (File)
Sep 3 2025, 12:54 PM
Unknown Object (File)
Jul 29 2025, 7:34 AM
Unknown Object (File)
Jul 29 2025, 1:05 AM
Subscribers
None

Details

Summary

With COMPILER_FREEBSD_VERSION, we use a numeric value that we bump each
time we make a change that requires re-bootstrapping, but with the
linker variant, we instead take the entire part after "FreeBSD", as in
this example version output:

LLD 9.0.1 (FreeBSD c1a0a213378a458fbea1a5c77b315c7dce08fd05-1300006) (compatible with GNU linkers)

E.g., LINKER_FREEBSD_VERSION is currently being set to
"c1a0a213378a458fbea1a5c77b315c7dce08fd05-1300006". This means that
*any* new upstream lld version will cause re-bootstrapping.

We should only look at the numerical field we append after a dash
instead. This review attempts to make it so.

The only thing I am not happy about is the post-processing of awk output
in Makefile.inc1. I notice that our awk does not have gensub(), so it
can't substitute a numbered sub-regex with \1, \2, etc. Suggestions
welcome. :)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable