Ticket #20 (new enhancement)

Opened 3 years ago

Last modified 2 years ago

DWT2: Support for building one file at a time

Reported by: torhu Assigned to: keinfarbton
Priority: major Milestone:
Component: DWT-Win Version: 2.0
Keywords: dwt2 build rakefile Cc: torhu@yahoo.com

Description

For reference, Gregor Richards explains the issue well in this news post.

The current rakefile hands all the files to dmd at once. This means fast builds, but results in lib files that makes your executable larger when you link with them. How much larger varies from one project to another.

Would it be possible to have an option to build one file at a time, like DSSS can do? This could even be the default, and you would have to use a QUICK=1 option or something like that if you want the all-at-once build. I'm not sure which way is the best default, though.

I would attach a patch, but I don't know rake or ruby. :)

Change History

06/06/10 10:37:00 changed by torhu

I've started to just build dwt and my app together (all files at once), which solves this issue nicely. Takes a little bit longer to build, but still only a couple of seconds if you have a reasonably fast machine. And it doesn't cause a bloated executable.

xfbuild does multithreaded builds, which helps to speed thing up.