mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00

Make sure the overall order corresponds to the user's command-line order of object and source files. The only exception being singleObj builds, for which the single object file for all source files is always the first entry in the object files list (which is forwarded to the linker in that order). This is done so that we can easily get hold of the name when emitting the single object file later in the `ldc::CodeGenerator` dtor. It should also clearly define the linking order (affecting comdat selections etc.) for special singleObj builds. Also reuse some more code (wrt. output filenames) from DMD's main().
1 line
14 B
D
1 line
14 B
D
void bar() {}
|