GDC options

Johannes Pfau via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 12 08:38:22 PDT 2017


Am Sun, 12 Mar 2017 12:09:01 +0000
schrieb Russel Winder via Digitalmars-d-learn
<digitalmars-d-learn at 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



More information about the Digitalmars-d-learn mailing list