DMDCompiler

Undocumented in source.

Members

Functions

determinePlatform
BuildPlatform determinePlatform(BuildSettings settings, string compiler_binary, string arch_override)
Undocumented in source. Be warned that the author may not have intended to support it.
determineVersion
string determineVersion(string compiler_binary, string verboseOutput)
Undocumented in source. Be warned that the author may not have intended to support it.
extractBuildOptions
void extractBuildOptions(BuildSettings settings)
Undocumented in source. Be warned that the author may not have intended to support it.
getTargetFileName
string getTargetFileName(BuildSettings settings, BuildPlatform platform)
Undocumented in source. Be warned that the author may not have intended to support it.
invoke
void invoke(BuildSettings settings, BuildPlatform platform, void delegate(int, string) output_callback, NativePath cwd)
Undocumented in source. Be warned that the author may not have intended to support it.
invokeLinker
void invokeLinker(BuildSettings settings, BuildPlatform platform, string[] objects, void delegate(int, string) output_callback, NativePath cwd)
Undocumented in source. Be warned that the author may not have intended to support it.
lflagsToDFlags
string[] lflagsToDFlags(string[] lflags)
Undocumented in source. Be warned that the author may not have intended to support it.
prepareBuildSettings
void prepareBuildSettings(BuildSettings settings, BuildPlatform platform, BuildSetting fields)
Undocumented in source. Be warned that the author may not have intended to support it.
setTarget
void setTarget(BuildSettings settings, BuildPlatform platform, string tpath)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

dmdVersionRe
enum dmdVersionRe;
Undocumented in source.

Properties

name
string name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

isLinkerDFlag
bool isLinkerDFlag(string arg)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Compiler

name
string name [@property getter]

Returns the canonical name of the compiler (e.g. "dmd").

determinePlatform
BuildPlatform determinePlatform(BuildSettings settings, string compiler_binary, string arch_override)

Determines the build platform properties given a set of build settings.

prepareBuildSettings
void prepareBuildSettings(BuildSettings settings, BuildPlatform platform, BuildSetting supported_fields)

Replaces high level fields with low level fields and converts dmd flags to compiler-specific flags

extractBuildOptions
void extractBuildOptions(BuildSettings settings)

Removes any dflags that match one of the BuildOptions values and populates the BuildSettings.options field.

getTargetFileName
string getTargetFileName(BuildSettings settings, BuildPlatform platform)

Computes the full file name of the generated binary.

setTarget
void setTarget(BuildSettings settings, BuildPlatform platform, string targetPath)

Adds the appropriate flag to set a target path

invoke
deprecated void invoke(BuildSettings settings, BuildPlatform platform, void delegate(int, string) output_callback)
void invoke(BuildSettings settings, BuildPlatform platform, void delegate(int, string) output_callback, NativePath cwd)

Invokes the compiler using the given flags

invokeLinker
deprecated void invokeLinker(BuildSettings settings, BuildPlatform platform, string[] objects, void delegate(int, string) output_callback)
void invokeLinker(BuildSettings settings, BuildPlatform platform, string[] objects, void delegate(int, string) output_callback, NativePath cwd)

Invokes the underlying linker directly

lflagsToDFlags
string[] lflagsToDFlags(string[] lflags)

Convert linker flags to compiler format

determineVersion
string determineVersion(string compiler_binary, string verboseOutput)

Determines compiler version

invokeTool
deprecated void invokeTool(string[] args, void delegate(int, string) output_callback, string[string] env)
void invokeTool(string[] args, void delegate(int, string) output_callback, NativePath cwd, string[string] env)

Runs a tool and provides common boilerplate code.

probePlatform
BuildPlatform probePlatform(string compiler_binary, string[] args, string arch_override)

Compiles platform probe file with the specified compiler and parses its output.

Meta