[Issue 21046] New: How to remove unittest when linking
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 16 08:24:35 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21046
Issue ID: 21046
Summary: How to remove unittest when linking
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: visuald
Assignee: nobody at puremagic.com
Reporter: cr at tagion.org
I have not been able to finf a way to link program without unittest if I link
with library archives which has been compile with -unittest.
The if just one of the .a/.o has been compile with -unittest the main program
is linked with unittest.
This means that you have to recompile all the libraries or else the main just
run the unittest.
This has changed after the dmd compiler --DRT-testmode=run-main was introduced.
I don't know if the dmd/linker has a switch which can force unittest out of the
linking process?
Best
Carsten
--
More information about the Digitalmars-d-bugs
mailing list