View source code
Display the source code in dmd/glue.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.glue.generateCodeAndWrite

Generate code for modules and write objects/libraries

void generateCodeAndWrite (
  Module[] modules,
  const(char)*[] libmodules,
  const(char)[] libname,
  const(char)[] objdir,
  bool lib,
  bool obj,
  bool oneobj,
  bool multiobj,
  bool verbose
);

Parameters

NameDescription
modules array of Modules to generate code for
libmodules array of objects/libraries already generated (passed on command line)
libname {.lib,.a} file output name
objdir directory to write object files to
lib write library file instead of object file(s)
obj generate object files
oneobj write one object file instead of multiple ones
multiobj break one object file into multiple ones
verbose print progress message when generatig code

Authors

Walter Bright

License

Boost License 1.0