www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24290] New: The dmd's command line option "-run" creates

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 puremagic.com
          Reporter: siarhei.siamashka 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`.

--
Dec 20 2023