[dmd-beta] dmd 2.063 beta 8 - the last one!

Rainer Schuetze r.sagitario at gmx.de
Mon Jun 3 10:52:59 PDT 2013


On 03.06.2013 05:21, Walter Bright wrote:
>
> On 5/30/2013 7:39 AM, Rainer Schuetze wrote:
>>
>> I don't want to spoil the party, but it seems that building with -lib
>> doesn't split a module into separate modules for each function anymore
>> (for win32, not win64). According to the list file generated by
>> lib.exe, every module in phobos is a single object file.
>>
>> Was it a deliberate change? It exposes bug 9044 pretty easily:
>> http://d.puremagic.com/issues/show_bug.cgi?id=9044.
>
> Compile the following:
> ----------------------------------------
> void foo1() { }
> void foo2() { }
> --------------------------------------
> with:
>
>     dmd -c -multiobj foo
>
> and you should see it creating 3 .obj files.

Yeah, there is nothing with -multiobj in general. COFF-libraries work, 
but not OMF-libraries.

If you build the above with "dmd -lib foo.lib"

and run "lib -l foo.lib", you get this list file:

Publics by name		module
_D3foo12__ModuleInfoZ            foo
_D3foo15__unittest_failFiZv      foo
_D3foo4foo1FZv                   foo
_D3foo4foo2FZv                   foo
_D3foo7__arrayZ                  foo
_D3foo8__assertFiZv              foo


Publics by module
foo
	_D3foo12__ModuleInfoZ             _D3foo15__unittest_failFiZv
	_D3foo4foo1FZv                    _D3foo4foo2FZv
	_D3foo7__arrayZ                   _D3foo8__assertFiZv




More information about the dmd-beta mailing list