Thread overview
[Issue 21046] How to remove unittest when linking
Jul 18, 2020
Rainer Schuetze
Dec 17, 2022
Iain Buclaw
July 18, 2020
https://issues.dlang.org/show_bug.cgi?id=21046

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

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

--- Comment #1 from Rainer Schuetze <r.sagitario@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" ];

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21046

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

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

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17409

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--