dub.platform

Build platform identification and specification matching.

This module is useful for determining the build platform for a certain machine and compiler invocation. Example applications include classifying CI slave machines.

It also contains means to match build platforms against a platform specification string as used in package recipes.

Members

Functions

determineArchitecture
string[] determineArchitecture()

Returns a list of architecture identifiers that apply to the current build.

determineBuildPlatform
BuildPlatform determineBuildPlatform()

Determines the full build platform used for the current build.

determineCompiler
string determineCompiler()

Determines the canonical compiler name used for the current build.

determinePlatform
string[] determinePlatform()

Returns a list of platform identifiers that apply to the current build.

matchesSpecification
bool matchesSpecification(BuildPlatform platform, const(char)[] specification)

Matches a platform specification string against a build platform.

Structs

BuildPlatform
struct BuildPlatform

Represents a platform a package can be build upon.

Variables

archCheck
enum string archCheck;

private

compilerCheck
enum string compilerCheck;

private

platformCheck
enum string platformCheck;

private

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig