Bug 24290 – The dmd's command line option "-run" creates files in the current directory and this is problematic

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-12-20T23:22:58Z
Last change time
2024-12-13T19:32:12Z
Assigned to
No Owner
Creator
Siarhei Siamashka
Moved to GitHub: dmd#20370 →

Comments

Comment #0 by siarhei.siamashka — 2023-12-20T23:22:58Z
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`.
Comment #1 by siarhei.siamashka — 2023-12-22T03:56:08Z
ldc2/ldmd2 also support '-run' option and don't attempt to write object files to the current directory.
Comment #2 by robert.schadek — 2024-12-13T19:32:12Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20370 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB