Re: Proposal: Simplify or Remove Compiler Version Details from Kernel Banner
Date: Fri, 13 Mar 2026 12:12:50 UTC
On 13 Mar 2026, at 12:07, Haowu Ge(葛豪武) <gehaowu@bitmoe.com> wrote: > > Given that FreeBSD now exclusively uses Clang, the full compiler version string—particularly the part containing the GitHub URL—originally introduced to support GCC/Clang coexistence, You can still compile FreeBSD with gcc, if you want. The compiler version string inserted into the kernel's banner is simply the first line of "$CC -v" output. The linker version string is handled similarly. The way clang prints its version information is determined by upstream, see https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Version.cpp. The FreeBSD version of clang uses almost the same format as upstream, except for the following differences: * We set CLANG_VENDOR to "FreeBSD". * We use the "git describe" version of the commit hash, since it is more informative than a long string of hex digits. -Dimitry