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

Two possible bugs in Build, -I and -X?

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



Joined: 06 Mar 2005
Posts: 68

PostPosted: Tue Mar 08, 2005 1:44 pm    Post subject: Two possible bugs in Build, -I and -X? Reply with quote

I'm trying to build a program with build (agh what a bad name...) but the following two things happen:
Code:
D:\project\DeeTest\src>dbuild main.d -Rn -Iincludes -Xsdl -test
Command: 'C:\devel\dmd\bin\dmd.exe "-op" "-IC:\devel\dmd\bin\..\src\phobos" "-un
ittest" "prt\print.obj" "SDL.obj" "main.d" "-ofmain.exe"


First build isn't excluding module sdl, thus including the "SDL.obj" line, which doesn't exists. If the module is in a package it works correctly though.
Second the -I parameter (-Iincludes) isn't passed to the dmd compiler, so even if I workaround the previous error, it still doesn't compile.

PS: In my PC I renamed build.exe to dbuild.exe ...
Back to top
View user's profile Send private message
Derek Parnell



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

PostPosted: Wed Mar 09, 2005 4:11 am    Post subject: Re: Two possible bugs in Build, -I and -X? Reply with quote

phoenix wrote:
I'm trying to build a program with build (agh what a bad name...)

Oh well, I'm sure its not a terminal condition, you'll get over it. Smile

phoenix wrote:
but the following two things happen:
Code:
D:\project\DeeTest\src>dbuild main.d -Rn -Iincludes -Xsdl -test
Command: 'C:\devel\dmd\bin\dmd.exe "-op" "-IC:\devel\dmd\bin\..\src\phobos" "-un
ittest" "prt\print.obj" "SDL.obj" "main.d" "-ofmain.exe"


First build isn't excluding module sdl, thus including the "SDL.obj" line, which doesn't exists. If the module is in a package it works correctly though.

Correct. The -X actually only excludes packages. I'll look at changing this. In the meantime, you can add to your source code ...
Code:
version(build) pragma(nolink, SDL.obj);



phoenix wrote:
Second the -I parameter (-Iincludes) isn't passed to the dmd compiler, so even if I workaround the previous error, it still doesn't compile.

Correct. The -I path is not passed to dmd. It is only used to locate the imported files by build itself. It probably should be passed to dmd too though.
phoenix wrote:
PS: In my PC I renamed build.exe to dbuild.exe ...

I was going to use dbuild also, but I found that name was already taken plus I'm getting tired of D<whatever> for the tool names - it sounds a bit kitch to me Wink
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
phoenix



Joined: 06 Mar 2005
Posts: 68

PostPosted: Sat Mar 12, 2005 9:19 am    Post subject: Re: Two possible bugs in Build, -I and -X? Reply with quote

Derek Parnell wrote:

Correct. The -I path is not passed to dmd. It is only used to locate the imported files by build itself. It probably should be passed to dmd too though.

Yes, that and also documenting on build usage and HTML that it uses -I Wink
Derek Parnell wrote:

I was going to use dbuild also, but I found that name was already taken plus I'm getting tired of D<whatever> for the tool names - it sounds a bit kitch to me Wink

"buildd" then? Hum, no... thats actually very bad... Well I dunno, use your imagination. If you want of course, it's your project after all. Razz
Back to top
View user's profile Send private message
lkd85



Joined: 14 Jan 2005
Posts: 5

PostPosted: Sat Mar 12, 2005 9:56 am    Post subject: Reply with quote

Quote:
"buildd" then? Hum, no... thats actually very bad

Hey, that was going to be the name of my d build utilty. Mad
Anyway nice job on build I'm using it myself in conjunction with Context.
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Sat Mar 12, 2005 5:36 pm    Post subject: Reply with quote

I thought "build" was okay.

But if you're looking for alternatives, a thesaurus may come in handy.

Examples:

- compose
- forge
- contrive
- sculpt
- produce
- form (or d-form Wink )
- assemble

Later,

JJR
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Sat Mar 12, 2005 5:53 pm    Post subject: Reply with quote

or we can call it, ... aggrandize!

"To increase the scope of; extend"

seriously, though, build is a nice simple name.
although dmake was a nice name too. . .

but it doesn't matter what we call it, as long as it works!
Back to top
View user's profile Send private message AIM Address
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