www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15487] New: runtime switches should be env variables

https://issues.dlang.org/show_bug.cgi?id=15487

          Issue ID: 15487
           Summary: runtime switches should be env variables
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: dlang srtnwz.com

runtime switches such as --DRT-gcopt should be controllable via ENV variables
and not via switches. 
once you have your own command line switch parse it can create problems.
(e.g. with vibe.d it does not work).

i think there should be a coherent strategy on how these switches can be
transformed to ENV variables.

go does this relatively nicely: https://golang.org/pkg/runtime/

--
Dec 31 2015