Dub.defaultCompiler

Returns the default compiler binary to use for building D code.

If set, the "defaultCompiler" field of the DUB user or system configuration file will be used. Otherwise the PATH environment variable will be searched for files named "dmd", "gdc", "gdmd", "ldc2", "ldmd2" (in that order, taking into account operating system specific file extensions) and the first match is returned. If no match is found, "dmd" will be used.

class Dub
@property const
string
defaultCompiler
()

Meta