https://issues.dlang.org/show_bug.cgi?id=22863
Issue ID: 22863
Summary: [REG2.099] -main doesn't work anymore when used for
linking only (without source modules)
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
`dmd -main foo.o` yields an undefined `main` for any foo.o not defining a main
itself - the __main.o object file doesn't make it to the linker cmdline.
See https://github.com/ldc-developers/ldc/pull/3938.
--