D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1838 - Missing redundant symbols make compile time monsters
Summary: Missing redundant symbols make compile time monsters
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: All All
: P2 critical
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 16:41 UTC by Frank Benoit
Modified: 2014-02-24 15:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Benoit 2008-02-14 16:41:50 UTC
As Gregor explained in this posting

http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=57473

build tools are forced to call DMD separately on each file. This turns out to be so bad. Project like DWT will take >15 min for a full compile. This is simply not acceptable.
Comment 1 Walter Bright 2008-03-02 22:40:07 UTC
I understand the problem, but it is not easy to fix. Also, it only is an issue for library builds, not application builds.
Comment 2 Frank Benoit 2008-03-03 04:39:17 UTC
(In reply to comment #1)

Library builds are the basis for application builds. So your arguments for low priority is an argument for high priority to me.
Comment 3 Walter Bright 2012-04-25 01:13:49 UTC
I don't believe this is an issue any more. To create libraries from multiple files, just list all the files on one command line, and specify -lib. dmd will produce fine grained object files, sometimes many per source file.

This is the way Phobos is currently built, for example.