[Issue 8734] Compiler must verify exe path is writable before attempting compilation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 28 19:28:40 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8734
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-09-28 19:29:10 PDT ---
(In reply to comment #1)
> I'm not seeing why this is an issue. Does this come up a lot for you?
It takes about half a minute to build one of my projects but I forgot to close
down the previously compiled application when doing so, so I've had to
recompile again.
This could be integrated into a build system, or even RDMD, but I thought it
would be nice to put the check directly into DMD.
If you believe the check would slow things down then I guess we can live
without the feature. It could be implemented as a simple system() call, e.g.
pseudocode:
if (system("echo > main.exe") == -1) // error, couldn't overwrite file
{ }
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list