BuildPlatform.matchesSpecification

Build platforms can be specified via a string specification.

Specifications are build upon the following scheme, where each component is optional (indicated by []), but the order is obligatory. "[-platform][-architecture][-compiler]"

So the following strings are valid specifications: "-windows-x86-dmd" "-dmd" "-arm" "-arm-dmd" "-windows-dmd"

struct BuildPlatform
bool
matchesSpecification
const
(
const(char)[] specification
)

Parameters

specification
Type: const(char)[]

The specification being matched. It must be the empty string or start with a dash.

Return Value

Type: bool

true if the given specification matches this BuildPlatform, false otherwise. (The empty string matches)

Meta