Am Sun, 12 Mar 2017 12:09:01 +0000 schrieb Russel Winder via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>:
> Hi, > > ldc2 has the -unittest --main options to compile a file that has > unittests and no main so as to create a test executable. What causes > the same behaviour with gdc? > https://github.com/D-Programming-GDC/GDMD/tree/dport gdmd -unittest --main The unittest flag for GDC is -funittest but there's no flag to generate a main function. gdmd generates a temporary file with a main function to implement this. -- Johannes