Thread overview
ldc2 --version: "built with D compiler version"
Mar 21, 2016
Johan Engelen
Mar 21, 2016
Johan Engelen
Mar 21, 2016
kink
March 21, 2016
Hi all,
 I just added information about which D compiler was used to build LDC to `ldc2 --version`. I think it is important information, at least for now when there may be some hidden differences/bugs between different D compilers.

It looks like this now:
❯ bin/ldc2 --version
LDC - the LLVM D compiler (febfca):
  based on DMD v2.069.2 and LLVM 3.9.0svn-r263048
  built with DMD64 D Compiler v2.070.2
  Default target: x86_64-apple-darwin15.3.0
  Host CPU: haswell
  http://dlang.org - http://wiki.dlang.org/LDC

cheers,
  Johan

March 21, 2016
On Monday, 21 March 2016 at 13:17:16 UTC, Johan Engelen wrote:
>
> It looks like this now:
> ❯ bin/ldc2 --version
> LDC - the LLVM D compiler (febfca):

Btw, the colon at the end of our first stdout line is a little annoying in pretty printing/parsing the output of `ldc2 --version`. In the CMake script, I use a regexp to match to the first outputted line, stopping the match on the first \r, \n, or ":". The colon in the regexp is added for LDC's output.

I vote for removing the colon from the --version output.
March 21, 2016
Sounds good. I'd prefer if you did such stuff in regular PRs though. This way, we all immediately see that there's something new, no forum post required, and it usually also gets reviewed. ;)