Thread overview | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 05, 2005 -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Attachments: | After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov |
December 05, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Senji | "Ivan Senji" <ivan.senji_REMOVE_@_THIS__gmail.com> wrote in message news:dn20e8$1q23$1@digitaldaemon.com... > After a long long time I managed to get it down to this, changing/removing anything else makes code compile. > > I compile it like this: > > build main.d -full -clean -cov I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function. |
December 06, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> "Ivan Senji" <ivan.senji_REMOVE_@_THIS__gmail.com> wrote in message
> news:dn20e8$1q23$1@digitaldaemon.com...
>
>>After a long long time I managed to get it down to this,
>>changing/removing anything else makes code compile.
>>
>>I compile it like this:
>>
>>build main.d -full -clean -cov
>
>
> I tried:
>
> dmd -cov main LR ivan_set
>
> and it doesn't crash when compiling it. It doesn't link, however, because
> there is no main() function.
>
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
|
December 06, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Mon, 5 Dec 2005 10:40:27 -0800, Walter Bright wrote: > Path: digitalmars.com!not-for-mail > From: "Walter Bright" <newshound@digitalmars.com> > Newsgroups: digitalmars.D.bugs > Subject: Re: -cov crashing dmd > Date: Mon, 5 Dec 2005 10:40:27 -0800 > Organization: Digital Mars > Lines: 18 > Message-ID: <dn22qr$1sum$1@digitaldaemon.com> > References: <dn20e8$1q23$1@digitaldaemon.com> > X-Trace: digitaldaemon.com 1133809308 62422 24.16.50.251 (5 Dec 2005 19:01:48 GMT) > X-Complaints-To: usenet@digitalmars.com > NNTP-Posting-Date: Mon, 5 Dec 2005 19:01:48 +0000 (UTC) > X-Priority: 3 > X-MSMail-Priority: Normal > X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 > Xref: digitalmars.com digitalmars.D.bugs:5752 > > "Ivan Senji" <ivan.senji_REMOVE_@_THIS__gmail.com> wrote in message news:dn20e8$1q23$1@digitaldaemon.com... >> After a long long time I managed to get it down to this, changing/removing anything else makes code compile. >> >> I compile it like this: >> >> build main.d -full -clean -cov > > I tried: > > dmd -cov main LR ivan_set > > and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function. Try ... dmd -cov main ivan_set LR That will crash it. -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 12:15:16 PM |
December 06, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Senji | On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote: > Walter Bright wrote: >> "Ivan Senji" <ivan.senji_REMOVE_@_THIS__gmail.com> wrote in message news:dn20e8$1q23$1@digitaldaemon.com... >> >>>After a long long time I managed to get it down to this, changing/removing anything else makes code compile. >>> >>>I compile it like this: >>> >>>build main.d -full -clean -cov >> >> I tried: >> >> dmd -cov main LR ivan_set >> >> and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function. >> > > You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments. No, it doesn't like the order that Build gives it to DMD. main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 12:23:06 PM |
December 06, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Senji | Ivan Senji wrote:
> After a long long time I managed to get it down to this, changing/removing anything else makes code compile.
>
> I compile it like this:
>
> build main.d -full -clean -cov
I was under the impression that you use build to make the 'exe', and then run 'dmd main.exe -cov' to get the code coverage *confused*
|
December 06, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to clayasaurus | clayasaurus wrote:
> Ivan Senji wrote:
>
>> After a long long time I managed to get it down to this, changing/removing anything else makes code compile.
>>
>> I compile it like this:
>>
>> build main.d -full -clean -cov
>
>
> I was under the impression that you use build to make the 'exe', and then run 'dmd main.exe -cov' to get the code coverage *confused*
Nevermind, you just compile it with the -cov option and run it to get the .lst file.
|
December 06, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | "Derek Parnell" <derek@psych.ward> wrote in message news:hfmw5i74yg20.19uyy5ema0dii.dlg@40tude.net... > No, it doesn't like the order that Build gives it to DMD. > > main LR ivan_set : works > LR main ivan_set : works > main ivan_set LR : fails > ivan_set main LR : fails > LR ivan_set main : works > ivan_set lr main : fails Thanks. I am able to reproduce it now. |
December 06, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | Derek Parnell wrote:
> On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:
>
>
>>Walter Bright wrote:
>>
>>>"Ivan Senji" <ivan.senji_REMOVE_@_THIS__gmail.com> wrote in message
>>>news:dn20e8$1q23$1@digitaldaemon.com...
>>>
>>>
>>>>After a long long time I managed to get it down to this,
>>>>changing/removing anything else makes code compile.
>>>>
>>>>I compile it like this:
>>>>
>>>>build main.d -full -clean -cov
>>>
>>>I tried:
>>>
>>> dmd -cov main LR ivan_set
>>>
>>>and it doesn't crash when compiling it. It doesn't link, however, because
>>>there is no main() function.
>>>
>>
>>You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
>
>
> No, it doesn't like the order that Build gives it to DMD.
>
> main LR ivan_set : works
> LR main ivan_set : works main ivan_set LR : fails
> ivan_set main LR : fails
> LR ivan_set main : works
> ivan_set lr main : fails
>
Thanks, i get it.
|
December 06, 2005 Re: -cov crashing dmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Senji | On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote: > Derek Parnell wrote: >> On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote: >> >>>Walter Bright wrote: >>> >>>>"Ivan Senji" <ivan.senji_REMOVE_@_THIS__gmail.com> wrote in message news:dn20e8$1q23$1@digitaldaemon.com... >>>> >>>> >>>>>After a long long time I managed to get it down to this, changing/removing anything else makes code compile. >>>>> >>>>>I compile it like this: >>>>> >>>>>build main.d -full -clean -cov >>>> >>>>I tried: >>>> >>>> dmd -cov main LR ivan_set >>>> >>>>and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function. >>>> >>> >>>You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments. >> >> No, it doesn't like the order that Build gives it to DMD. >> >> main LR ivan_set : works >> LR main ivan_set : works >> main ivan_set LR : fails >> ivan_set main LR : fails >> LR ivan_set main : works >> ivan_set lr main : fails >> > > Thanks, i get it. In fact, if main.d has a main() function, it works in all cases. -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 6:06:18 PM |
Copyright © 1999-2021 by the D Language Foundation