D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6102 - [RDMD] Changing a string import file doesn't trigger a rebuild
Summary: [RDMD] Changing a string import file doesn't trigger a rebuild
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-04 00:03 UTC by Nick Sabalausky
Modified: 2011-09-27 15:30 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 Nick Sabalausky 2011-06-04 00:03:36 UTC
1. Build some program with RDMD
2. Modify a string import file your program uses.
3. Run RDMD again.

RDMD will use the cached executable instead of rebuilding it.
Comment 1 Andrei Alexandrescu 2011-06-04 15:19:53 UTC
I talked to Walter about adding support for this in the compiler.
Comment 2 Nick Sabalausky 2011-08-02 19:41:01 UTC
The string import files are already in the .deps file, they're just marked "file" instead of "import". (At least in 2.054 anyway.)

The .deps entries marked "binary", "config" and "library" should also be checked.
Comment 3 Nick Sabalausky 2011-08-02 22:34:06 UTC
Pull request fixing this issue: 

https://github.com/D-Programming-Language/tools/pull/6

That fixes the issue for "file" (ie string imports), "binary" and "config". Fixing it for "library" is more difficult since the path to the library has to be figured out (rather than scraped from the deps file), so I've made a separate issue for that: issue 6431
Comment 4 Nick Sabalausky 2011-09-27 15:30:14 UTC
Pull request was accepted and issue is fixed as of 2.055