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.createModules

Creates the list of modules based on the files provided

dmd.root.array.Array!(dmd.dmodule.Module) createModules (
  ref dmd.root.array.Array!(const(char)*) files,
  ref dmd.root.array.Array!(const(char)*) libmodules
);

Files are dispatched in the various arrays (global.params.{ddocfiles,dllfiles,jsonfiles,etc...}) according to their extension. Binary files are added to libmodules.

Parameters

NameDescription
files File names to dispatch
libmodules Array to which binaries (shared/static libs and object files) will be appended

Returns

An array of path to D modules

Authors

Walter Bright

License

Boost License 1.0