Thread overview
[Issue 6431] New: [RDMD] Modifying a library doesn't trigger a rebuild
Aug 03, 2011
Nick Sabalausky
Mar 10, 2013
Vladimir Panteleev
Mar 10, 2013
Vladimir Panteleev
Mar 10, 2013
David Nadlinger
August 03, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6431

           Summary: [RDMD] Modifying a library doesn't trigger a rebuild
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: cbkbbejeap@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap@mailinator.com> 2011-08-02 22:32:54 PDT ---
Similar to issue 6102, but for libraries:

1. Build some program with RDMD
2. Modify a static library your program uses.
3. Run RDMD again.

RDMD will use the cached executable instead of rebuilding it.

I've made this a separate issue because it's more difficult to solve than issue 6102.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6431


Vladimir Panteleev <thecybershadow@gmail.com> changed:

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


--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> 2013-03-10 10:15:04 EET ---
(In reply to comment #0)
> 2. Modify a static library your program uses.

I assume the library is linked in via pragma(lib, "libname")?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6431



--- Comment #2 from Vladimir Panteleev <thecybershadow@gmail.com> 2013-03-10 10:43:35 EET ---
Ultimately, for this to work correctly all the time, rdmd would need to know where the linker will look for library files. This isn't really realistic as it depends on the linker implementation (e.g. it might consult its own configuration files or environment variables). It's possible to add some heuristics to rdmd, though, e.g. to search /usr/lib, %LIB% / $LIBRARY_PATH, and the current directory.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6431



--- Comment #3 from github-bugzilla@puremagic.com 2013-03-10 14:34:31 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/tools

https://github.com/D-Programming-Language/tools/commit/d7d17858bd8525e1481d931b5a0fb3cf2a3aad76 rdmd: Add some heuristics for detecting updated libraries (issue 6431)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6431


David Nadlinger <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |code@klickverbot.at
         Resolution|                            |FIXED


--- Comment #4 from David Nadlinger <code@klickverbot.at> 2013-03-10 14:54:29 PDT ---
I'm marking this as fixed, as a set of heuristics has been implemented in Git master.

If they don't adequately cover your use case, please open another more detailed bug report.

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