www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13439] New: rdmd: Don't recompile the program if only current

https://issues.dlang.org/show_bug.cgi?id=13439

          Issue ID: 13439
           Summary: rdmd: Don't recompile the program if only current
                    directory changes
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Keywords: pull
          Severity: enhancement
          Priority: P1
         Component: tools
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

Use the absolute path to the root .d file instead.

It is certainly possible that the build result will depend on
the current directory. For example, if the root file imports
other modules, these will be sought in the current directory
first. However, this is an unlikely use case, and can be
simulated using e.g. --force or -I%CD%.

On the other hand, having your script be rebuilt every time
it is run from a different directory is an unnecessary waste
of time and disk space.

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

--
Sep 08 2014