parse_arch_arg

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

const(char)[]
parse_arch_arg
(
Strings* args
,
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 "32omf" if the "-m32", "-m64", "-m32omf" flags were passed, respectively. If they weren't, return arch.

Meta