DlangCompiler

Provides information about the companion D compiler to use for evaluating examples.

Members

Enums

Type
enum Type
Undocumented in source.

Functions

compileSharedLibrary
auto compileSharedLibrary(string source, string outputPath)

Compile a shared library from given source file.

debugFlags
const(string)[] debugFlags()

Get the flag to generate a debug binary for the current compiler.

extraFlags
const(string)[] extraFlags()

Extra, platform-specific flags needed to build a shared library.

importFlag
string importFlag(string directory)

Get the flag for importing from given directory.

importPathsFlag
string[] importPathsFlag()

Get the flag for adding all import directories specified in compiler config.

opCast
bool opCast()

Returns true if this entry points to a valid compiler.

sharedLibraryFlag
string sharedLibraryFlag()

Get the flag to generate a shared library for the given compiler.

unittestFlag
string unittestFlag()

Get the flag to include unittests.

Manifest constants

frontendMajor
enum frontendMajor;

Import paths to pass to the compiler.

Static functions

findAny
DlangCompiler findAny()

Find any suitable in the system.

findDMD
DlangCompiler findDMD()

Find DMD in the system.

findLDC
DlangCompiler findLDC()

Find LDC in the system.

Variables

executable
string executable;

Executable name or path to the compiler executable. If null, no compiler is available.

frontendMinor
int frontendMinor;
frontendPatch
int frontendPatch;

DMD frontend version of the compiler. Major version is assumed to be 2.

importPaths
const(string)[] importPaths;

Import paths to pass to the compiler.

type
Type type;

Type (vendor) of the compiler. Either DMD or LDC.

Meta