[Issue 24290] New: The dmd's command line option "-run" creates files in the current directory and this is problematic
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 20 23:22:58 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24290
Issue ID: 24290
Summary: The dmd's command line option "-run" creates files in
the current directory and this is problematic
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: siarhei.siamashka at hotmail.com
The current directory may be read-only. Also the temporary files created by
multiple processes running simultaneously may clash:
https://github.com/dlang/dmd/commit/f3a0366f4f3e4af2f793fa6444b203b6a0adce0a
As a solution, the relevant code responsible for creating temporary files can
be probably borrowed from `rdmd`, `dub` or `rund`.
--
More information about the Digitalmars-d-bugs
mailing list