View previous topic :: View next topic |
Author |
Message |
phoenix
Joined: 06 Mar 2005 Posts: 68
|
Posted: Tue Mar 08, 2005 1:44 pm Post subject: Two possible bugs in Build, -I and -X? |
|
|
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 |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Wed Mar 09, 2005 4:11 am Post subject: Re: Two possible bugs in Build, -I and -X? |
|
|
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.
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 _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
phoenix
Joined: 06 Mar 2005 Posts: 68
|
Posted: Sat Mar 12, 2005 9:19 am Post subject: Re: Two possible bugs in Build, -I and -X? |
|
|
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
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 |
"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. |
|
Back to top |
|
|
lkd85
Joined: 14 Jan 2005 Posts: 5
|
Posted: Sat Mar 12, 2005 9:56 am Post subject: |
|
|
Quote: | "buildd" then? Hum, no... thats actually very bad |
Hey, that was going to be the name of my d build utilty.
Anyway nice job on build I'm using it myself in conjunction with Context. |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Sat Mar 12, 2005 5:36 pm Post subject: |
|
|
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 )
- assemble
Later,
JJR |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Sat Mar 12, 2005 5:53 pm Post subject: |
|
|
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 |
|
|
|
|
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
|