FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

do 'debug' statements confuse Build?

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Sun May 15, 2005 5:45 pm    Post subject: do 'debug' statements confuse Build? Reply with quote

Working with Ares, I stumbled over something that may or may not be an issue ~ a statement of the following form includes the import regardless of the 'debug' state:

Code:
debug private import x.y.z;


Does Build always include imports for version() statements too, or is that different? (I just need to get it straight in my head).
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Sun May 15, 2005 6:19 pm    Post subject: Re: do 'debug' statements confuse Build? Reply with quote

kris wrote:
Working with Ares, I stumbled over something that may or may not be an issue ~ a statement of the following form includes the import regardless of the 'debug' state:

Code:
debug private import x.y.z;


Does Build always include imports for version() statements too, or is that different? (I just need to get it straight in my head).

I'm not really treating debug correctly. The version statement is mostly being correctly treated.

So for now you could code this as
Code:
version(mydebug) private import x.y.z;
and compile it with
Code:
build -version=mydebug ...


I don't handle the form
Code:
version( <integer> )

at all.

I'll fix these ASAP.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Sun May 15, 2005 6:49 pm    Post subject: Reply with quote

Thanks, Derek.
Back to top
View user's profile Send private message
randomZ



Joined: 04 Dec 2004
Posts: 31
Location: Tuebingen, Germany

PostPosted: Sat May 21, 2005 6:12 am    Post subject: Reply with quote

This is probably related: Including a "-debug=ident" option on the command line or in a brf causes build to crash with an access violation.
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Sat May 21, 2005 11:30 pm    Post subject: Reply with quote

randomZ wrote:
This is probably related: Including a "-debug=ident" option on the command line or in a brf causes build to crash with an access violation.

I doubt it. I suspect that by using this debug value, you are compiling in code that is faulty. I don' t think that this is a Build issue.

If you still think that this ia problem with Build, please send me a source file that causes the effect.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
randomZ



Joined: 04 Dec 2004
Posts: 31
Location: Tuebingen, Germany

PostPosted: Sun May 22, 2005 3:00 am    Post subject: Reply with quote

Now I'm confused.

It *did* crash yesterday. Now it stopped doing it.

I guess I should be happy that it doesn't do it anymore... You were probably right, it was my own code that did it.

I love build, BTW!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group