Page MenuHomeFreeBSD

Get rid of the vendor suffix patch for clang.
AbandonedPublic

Authored by dim on Oct 15 2015, 8:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 31 2023, 11:50 PM
Unknown Object (File)
Dec 31 2023, 11:50 PM
Unknown Object (File)
Dec 30 2023, 5:45 AM
Unknown Object (File)
Dec 20 2023, 7:31 AM
Unknown Object (File)
Sep 1 2023, 8:10 PM
Unknown Object (File)
Aug 13 2023, 1:57 PM
Unknown Object (File)
Jan 16 2023, 9:10 PM
Unknown Object (File)
Apr 16 2017, 8:16 PM

Details

Reviewers
emaste
theraven
Summary

Get rid of the vendor suffix patch for clang, since it is very unlikely
that anyone has ever used the suffix (which was mostly the approximate
datetime stamp of the import from the vendor area). This changes the
first line of "clang -v" output (in -current) from:

FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) 20150906

to:

FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) (based on LLVM 3.7.0)
Test Plan

There no functional change, this is purely cosmetic.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 776
Build 776: arc lint + arc unit

Event Timeline

dim retitled this revision from to Get rid of the vendor suffix patch for clang..
dim updated this object.
dim edited the test plan for this revision. (Show Details)
dim added reviewers: emaste, theraven.
dim added a subscriber: freebsd-toolchain-list.

This is fine with me. It's very useful for us to have the FreeBSD vendor string in there to differentiate our Clang from an unmodified 3.7.0, but the extra date string probably buys us very little.

emaste edited edge metadata.

LGTM but allow some time for others to comment.

This revision is now accepted and ready to land.Oct 15 2015, 8:24 PM

Oh, the "based on" text is only added if CLANG_VENDOR is set - I didn't pay attention to that at first. It seems odd in this case that we report Clang 3.7.0 based on LLVM 3.7.0. Of course it is.

We do want to indicate that our build may be modified from stock upstream Clang (with backported patches etc.), but I'm not sure that the "based on" text adds anything useful.

In D3909#81373, @emaste wrote:

Oh, the "based on" text is only added if CLANG_VENDOR is set - I didn't pay attention to that at first. It seems odd in this case that we report Clang 3.7.0 based on LLVM 3.7.0. Of course it is.

We do want to indicate that our build may be modified from stock upstream Clang (with backported patches etc.), but I'm not sure that the "based on" text adds anything useful.

No, in my opinion it doesn't add anything, but this is just how the stock upstream code looks. If we want to change that to something else, maybe we should suggest it upstream?

In any case, the "FreeBSD Clang" already indicates that it is 'our' build. We can also #define the BACKEND_PACKAGE_STRING in clang's config.h to something different, but it will always be printed in the form:

(based on %s)

If we want to change that to something else, maybe we should suggest it upstream?

Yeah, I think we should try to get whatever support we want upstream.

This was already done in the clang380-import branch, which will land in head soon.