[Issue 14654] New: rdmd should compile package at a time
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jun 5 09:10:40 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14654
Issue ID: 14654
Summary: rdmd should compile package at a time
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: andrei at erdani.com
rdmd builds the given file and all of its dependents in one shot. For large
projects, this becomes problematic because of many files are built
unnecessarily if one file is touched.
One emerging pattern is to build one package (= directory) at a time,
Haskell/Rust style. That allows users to organize dependencies in a scalable
manner.
rdmd would collect the dependency graph, "color" the files have been affected
by the changed files since last build, and then carve the entire file set by
directory. If at least one file has been colored in a directory, that directory
needs to be rebuilt.
This is a high impact project because it would instantly improve the lot of all
rdmd users, and scales rdmd up for larger builds.
--
More information about the Digitalmars-d-bugs
mailing list