View source code
Display the source code in dmd/mars.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.mars.parse_arch_arg

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

const(char)[] parse_arch_arg (
  dmd.root.array.Array!(const(char)*)* args,
  const(char)[] arch
);

Parameters

NameDescription
args Command line arguments
arch Default value to use for architecture. Should be "32" or "64"

Returns

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

Authors

Walter Bright

License

Boost License 1.0