On Tuesday, 5 April 2016 at 18:01:05 UTC, Nick Sabalausky wrote:
These days, DMD/DMDFE version numbers are three parts, ex: 2.070.1.

I can get the first two via std.compiler.version_major and std.compiler.version_minor. Is there a way to get the third part?

I know I can "dmd --help | grep DMD", but that only works for DMD. GDC's "gdc --version" doesn't appear to show the DMDFE version, and I have no idea about LDC.

"ldc2 --version" will give you the full DMDFE version it is based on.
E.g.
❯ bin/ldc2 --version
LDC - the LLVM D compiler (dff841):
  based on DMD v2.068.2 and LLVM 3.8.0svn-r262738

Reply via email to