std.compiler

Identify the compiler used and its various features.

Types 1

enumVendor

Master list of D compiler vendors.

unknown = 0Compiler vendor could not be detected
digitalMars = 1Digital Mars D (DMD)
gnu = 2GNU D Compiler (GDC)
llvm = 3LLVM D Compiler (LDC)
dotNET = 4D.NET
sdc = 5Snazzy D Compiler (SDC)

Variables 5

varstring name

Vendor specific string naming the compiler, for example: "Digital Mars D".

varuint version_major

The vendor specific version number, as in version_major.version_minor

varuint version_minor
varuint D_major

The version of the D Programming Language Specification supported by the compiler.

varuint D_minor