Thread overview
No map file?
Mar 23, 2009
Frank Benoit
Mar 23, 2009
torhu
Mar 24, 2009
Derek Parnell
Mar 25, 2009
Frank Benoit
March 23, 2009
How can i make DMD (link/optlink) not to generate a map file?

-L/NOM or -LNOMAP

both seem not work.
March 23, 2009
On 23.03.2009 10:02, Frank Benoit wrote:
> How can i make DMD (link/optlink) not to generate a map file?
>
> -L/NOM or -LNOMAP
>
> both seem not work.

I don't know, but bud manages this somehow, so Derek Parnell might know.
March 23, 2009
On Mon, Mar 23, 2009 at 11:11 AM, torhu <no@spam.invalid> wrote:
> On 23.03.2009 10:02, Frank Benoit wrote:
>>
>> How can i make DMD (link/optlink) not to generate a map file?
>>
>> -L/NOM or -LNOMAP
>>
>> both seem not work.
>
> I don't know, but bud manages this somehow, so Derek Parnell might know.
>

rm *.map

:P
March 24, 2009
On Mon, 23 Mar 2009 10:02:28 +0100, Frank Benoit wrote:

> How can i make DMD (link/optlink) not to generate a map file?
> 
> -L/NOM or -LNOMAP
> 
> both seem not work.

You can't using dmd. It doesn't generate the right linker options for you to avoid the map file. I do it in Bud by not having DMD invoke the linker, instead I have Bud invoke the linker with the right options.

The easiest way is to delete the .map files after compiling.

-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
March 25, 2009
Derek Parnell schrieb:
> On Mon, 23 Mar 2009 10:02:28 +0100, Frank Benoit wrote:
> 
>> How can i make DMD (link/optlink) not to generate a map file?
>>
>> -L/NOM or -LNOMAP
>>
>> both seem not work.
> 
> You can't using dmd. It doesn't generate the right linker options for you to avoid the map file. I do it in Bud by not having DMD invoke the linker, instead I have Bud invoke the linker with the right options.
> 
> The easiest way is to delete the .map files after compiling.
> 

Ok, so i created http://d.puremagic.com/issues/show_bug.cgi?id=2760 Thanks for the answer.