wilzbach / tools-test

1 stars 0 forks source link

rdmd: Don't recompile the program if only current directory changes #115

Closed wilzbach closed 10 years ago

wilzbach commented 10 years ago

Note: the issue was created automatically migrated from https://issues.dlang.org

Original bug ID: BZ#13439 From: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> Reported version: D2 CC: andrej.mitrovich@gmail.com

wilzbach commented 10 years ago

Comment author: Vladimir Panteleev <dlang-bugzilla@thecybershadow.net>

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

wilzbach commented 10 years ago

Comment author: Andrej Mitrovic <andrej.mitrovich@gmail.com>

Changed to all platforms.