Compiler

Undocumented in source.

Members

Functions

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

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

determineVersion
string determineVersion(string compiler_binary, string verboseOutput)

Determines compiler version

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.

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

Invokes the compiler using the given flags

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

Invokes the underlying linker directly

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

Runs a tool and provides common boilerplate code.

lflagsToDFlags
string[] lflagsToDFlags(string[] lflags)

Convert linker flags to compiler format

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

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

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

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

Adds the appropriate flag to set a target path

Properties

name
string name [@property getter]

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

Meta