← Back to index
|
Original Bugzilla link
Bug 458 – set version=D_Unittest if -unittest was issued
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-10-25T05:45:00Z
Last change time
2014-02-15T13:20:52Z
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2006-10-25T05:45:01Z
The below patch sets version=D_Unittest if -unittest is used. version(D_Unittest){ ... } should clean up import dependencies for non-unittest builds. === dmd/mars.c ================================================================== --- dmd/mars.c (revision 2012) +++ dmd/mars.c (local) @@ -535,6 +535,8 @@ if (global.params.cov) VersionCondition::addPredefinedGlobalIdent("D_Coverage"); + if (global.params.useUnitTests) + VersionCondition::addPredefinedGlobalIdent("D_Unittest"); //printf("%d source files\n",files.dim);
Comment #1
by bugzilla — 2008-03-07T00:19:10Z
Added version(unittest) to DMD 2.012