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
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

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.

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