parse_arch_arg

Parse command line arguments for the last instance of -m32, -m64 or -m32mscoff to detect the desired architecture.

const(char)[]
parse_arch_arg
(,
const(char)[] arch
)

Parameters

args Strings*

Command line arguments

arch const(char)[]

Default value to use for architecture. Should be "32" or "64"

Return Value

Type: const(char)[]

"32", "64" or "32mscoff" if the "-m32", "-m64", "-m32mscoff" flags were passed, respectively. If they weren't, return arch.

Meta