[Issue 21046] How to remove unittest when linking

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 18 06:43:50 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21046

Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de
          Component|visuald                     |druntime

--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> ---
I guess you didn't mean to set component "visuald".

I don't think you can easily strip the unittests, because they are referenced
by the ModuleInfo that is generated for each module. A workaround might be to
embed the testmode setting into the executable:

extern(C) __gshared string[] rt_options = [ "testmode=run-main" ];

--


More information about the Digitalmars-d-bugs mailing list