View source code
Display the source code in dmd/mars.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aBugzilla 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 usinglocal clone.

Function dmd.mars.createModules

Creates the list of modules based on the files provided

bool createModules(
  ref dmd.root.array.Array!(const(char)*) files,
  ref dmd.root.array.Array!(const(char)*) libmodules,
  ref const(Target) target,
  ErrorSink eSink,
  ref dmd.root.array.Array!(dmd.dmodule.Module) modules
);

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
target target system
eSink error message sink
modules empty array of modules to be filled in

Returns

true on error

Authors

Walter Bright

License

Boost License 1.0