www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4686] New: rdmd could use an incremental compilation option

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4686

           Summary: rdmd could use an incremental compilation option
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap mailinator.com> 2010-08-19
17:46:03 PDT ---
rdmd should have the ability (probably through a flag like "--incremental") to
keep the generated object files and only recompile the modules that have been
changed (or are dependent on a module that has been changed).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 19 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4686


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4686



--- Comment #1 from Andrei Alexandrescu <andrei erdani.com> 2013-02-26 09:11:01
PST ---
Isn't this already the case?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4686


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com


--- Comment #2 from Vladimir Panteleev <thecybershadow gmail.com> 2013-02-26
19:14:10 EET ---
No. rdmd simply does not recompile if no source files changed, but if at least
one changes, it rebuilds the whole program.

rdmd compiles all modules at once. There are known bugs in DMD that prevent
incremental compilation while passing multiple files to DMD, so in order to
support incremental compilation, rdmd would need to invoke the compiler once
for every module. This would slow it down considerably in the general case.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 26 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4686



--- Comment #3 from Andrei Alexandrescu <andrei erdani.com> 2013-02-26 09:50:43
PST ---
Got it. So let's keep this open, I foresee a solution in which rdmd would be
able to decide which approach to take depending on various heuristics.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 26 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4686


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |DUPLICATE


--- Comment #4 from Vladimir Panteleev <thecybershadow gmail.com> 2013-03-10
07:06:30 EET ---
Issue 9673 is Andrei's proposal to implement this.

Discussion:
http://forum.dlang.org/post/khh27e$2kvb$1 digitalmars.com

*** This issue has been marked as a duplicate of issue 9673 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 09 2013