Branding of Clang binary on FreeBSD

FYI,

I've just branded our Clang binary as follows:

$ clang -v
clang r104832 20100610 [FreeBSD]
clang version 2.0 (trunk)
Target: x86_64-undermydesk-freebsd9.0
Thread model: posix

So in case you see version output like this in bug reports, it's the
binary that's shipped with FreeBSD HEAD.

Greetings,

Ideally I'd like to have something like:

FreeBSD clang version 2.0 (trunk 104832) [20100610]

Where we just have the option to add our own keywords at the end of the
version string. I've attached a patch that allows you to both prepend
and append version info. Comments?

clangver.txt (1.92 KB)

Hi Ed,

We already support two separate tags, if you use branches. For
example, an Apple clang will get branded something like:
Apple clang version 2.0 (tags/Apple/clang-107).

If you create Clang branches to match your release, then you could get
the same behavior without adding another mechanism to the code. Would
this be sufficient?

- Daniel