Re: How to reduce compile times?

2009-03-23 Thread grauzone
Jarrett Billingsley wrote: On Sat, Mar 21, 2009 at 3:45 PM, grauzone wrote: Also, I noticed that "dsss build -full" seems to be the way to pass this flag on the command line. But the project is recompiled even when no file was modified at all. This is not good: it should only recompile if somet

Re: How to reduce compile times?

2009-03-23 Thread Robert Fraser
Jarrett Billingsley wrote: On Sat, Mar 21, 2009 at 3:45 PM, grauzone wrote: Also, I noticed that "dsss build -full" seems to be the way to pass this flag on the command line. But the project is recompiled even when no file was modified at all. This is not good: it should only recompile if somet

Re: How to reduce compile times?

2009-03-22 Thread Qian Xu
grauzone wrote: Brian wrote: On Sat, 21 Mar 2009 15:44:41 +0100, grauzone wrote: I'm using dsss (with dmd under Linux) to compile my project, and build/compile times are reaching unacceptable highs. out of curiosity, how much code do you actually have? im using D for something with ~12,000

Re: How to reduce compile times?

2009-03-22 Thread Qian Xu
grauzone wrote: In my case, this practically always causes linker errors. Of course I don't know why. You could change the order of object files by linking. if you have -> gdmd bbb.o aaa.o ccc.o -o binrary (-L. -l) change to -> gdmd aaa.o bbb.o ccc.o -o binrary (-L. -l) o

Re: How to reduce compile times?

2009-03-22 Thread Jarrett Billingsley
On Sat, Mar 21, 2009 at 3:45 PM, grauzone wrote: > > Also, I noticed that "dsss build -full" seems to be the way to pass this > flag on the command line. But the project is recompiled even when no file > was modified at all. This is not good: it should only recompile if something > has changed. W

Re: How to reduce compile times?

2009-03-21 Thread Clay Smith
grauzone wrote: Jarrett Billingsley wrote: On Sat, Mar 21, 2009 at 2:50 PM, grauzone wrote: What I need is to make dsss completely recompile the project, even if only a single source file was modified. This way, no errors should occur, and it would still be faster than with oneatatime=yes.

Re: How to reduce compile times?

2009-03-21 Thread grauzone
Brian wrote: On Sat, 21 Mar 2009 15:44:41 +0100, grauzone wrote: I'm using dsss (with dmd under Linux) to compile my project, and build/compile times are reaching unacceptable highs. out of curiosity, how much code do you actually have? im using D for something with ~12,000 lines of code rig

Re: How to reduce compile times?

2009-03-21 Thread Brian
On Sat, 21 Mar 2009 15:44:41 +0100, grauzone wrote: > I'm using dsss (with dmd under Linux) to compile my project, and > build/compile times are reaching unacceptable highs. out of curiosity, how much code do you actually have? im using D for something with ~12,000 lines of code right now, sprea

Re: How to reduce compile times?

2009-03-21 Thread grauzone
I use bud, which builds everything with a single run of dmd, but uses incremental compilation. If I get linker errors, I just run my cleanup script and try again. Or add -full to bud's command line. In my case, this practically always causes linker errors. Of course I don't know why.

Re: How to reduce compile times?

2009-03-21 Thread grauzone
Jarrett Billingsley wrote: On Sat, Mar 21, 2009 at 2:50 PM, grauzone wrote: What I need is to make dsss completely recompile the project, even if only a single source file was modified. This way, no errors should occur, and it would still be faster than with oneatatime=yes. -full Sorry for

Re: How to reduce compile times?

2009-03-21 Thread torhu
On 21.03.2009 19:50, grauzone wrote: Christopher Wright wrote: grauzone wrote: PS: another thing that possibly would bring a speed gain would be to make dsss compile the whole project in one run, instead of invoking a new dmd process for each source file. How do I need to change the rebuil

Re: How to reduce compile times?

2009-03-21 Thread Jarrett Billingsley
On Sat, Mar 21, 2009 at 2:50 PM, grauzone wrote: > What I need is to make dsss completely recompile the project, even if only a > single source file was modified. This way, no errors should occur, and it > would still be faster than with oneatatime=yes. -full

Re: How to reduce compile times?

2009-03-21 Thread grauzone
Christopher Wright wrote: grauzone wrote: PS: another thing that possibly would bring a speed gain would be to make dsss compile the whole project in one run, instead of invoking a new dmd process for each source file. How do I need to change the rebuild configuration to achieve this? oneata

Re: How to reduce compile times?

2009-03-21 Thread Christopher Wright
grauzone wrote: PS: another thing that possibly would bring a speed gain would be to make dsss compile the whole project in one run, instead of invoking a new dmd process for each source file. How do I need to change the rebuild configuration to achieve this? oneatatime = [yes|no] You want '

How to reduce compile times?

2009-03-21 Thread grauzone
I'm using dsss (with dmd under Linux) to compile my project, and build/compile times are reaching unacceptable highs. What are some tips to speed up the build process? For example, I could imagine that heavy use of templates and CTFE slows the compiler down. Maybe string mixins with CTFE on th