digitalmars.D.bugs - [Issue 22863] New: [REG2.099] -main doesn't work anymore when used
- d-bugmail puremagic.com (18/18) Mar 09 2022 https://issues.dlang.org/show_bug.cgi?id=22863
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: nobody puremagic.com Reporter: kinke gmx.net `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. --
Mar 09 2022