extern(C)__gsharedbool rt_cmdline_enabled =false;Likewise, declare a boolean rt_envvars_enabled to enable configuration via theenvironment variableDRT_ followed by the option name, e.g.DRT_GCOPT:
extern(C)__gsharedbool rt_envvars_enabled =true;Setting default configuration properties in the executable can be done by specifying anarray of options namedrt_options:
extern(C)__gshared string[] rt_options = ["gcopt=precise:1 profile:1"];Evaluation order of options isrt_options, then environment variables, then commandline arguments, i.e. if command line arguments are not disabled, they can overrideoptions specified through the environment or embedded in the executable.
Sourcert/config.d
rt_configOption(stringopt, scope rt_configCallBackdg = null, boolreverse = false);