Manual D main (for druntime initialization), which forwards to tryMain.
Add default version identifier for dmd, and set the target platform in params. https://dlang.org/spec/version.html#predefined-versions
Creates the list of modules based on the files provided
we want to write the mixin expansion file also on error, but there are too many ways to terminate dmd (e.g. fatal() which calls exit(EXIT_FAILURE)), so we can't rely on scope(exit) ... in tryMain() actually being executed so we add atexit(&flushMixins); for those fatal exits (with the GC still valid)
Parses an environment variable containing command-line flags and append them to args.
DMD's entry point, C main.
Parse command line arguments.
Parse command line arguments for the last instance of -m32, -m64 or -m32mscoff to detect the desired architecture.
Parse command line arguments for the last instance of -conf=path.
Print DMD's logo with more debug information and error-reporting pointers.
Adjust gathered command line switches and reconcile them.
Set the is target fields of params according to the TARGET value.
DMD's real entry point
Entry point for DMD.
This modules defines the entry point (main) for DMD, as well as related utilities needed for arguments parsing, path manipulation, etc... This file is not shared with other compilers which use the DMD front-end.