www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Documentation for --DRT- switches

reply forkit <forkit gmail.com> writes:
Is there any documentation regarding the esoteric --DRT- switches?

One of which is mentioned here:

https://issues.dlang.org/show_bug.cgi?id=21339
Feb 11 2022
next sibling parent Mike Parker <aldacron gmail.com> writes:
On Friday, 11 February 2022 at 11:15:05 UTC, forkit wrote:
 Is there any documentation regarding the esoteric --DRT- 
 switches?

 One of which is mentioned here:

 https://issues.dlang.org/show_bug.cgi?id=21339
The documented ones I'm aware of are here: https://dlang.org/spec/garbage.html#gc_config https://dlang.org/spec/module.html#order_of_static_ctor They definitely should be collected in a single location.
Feb 11 2022
prev sibling parent bauss <jj_1337 live.dk> writes:
On Friday, 11 February 2022 at 11:15:05 UTC, forkit wrote:
 Is there any documentation regarding the esoteric --DRT- 
 switches?

 One of which is mentioned here:

 https://issues.dlang.org/show_bug.cgi?id=21339
Look for the usage of the function `rt_configOption` in the D runtime. Ex. for `trapExceptions` you can find it in dmain2.d used in the function `parseExceptionOptions`. I don't think there are any official documentations of all the different runtime configurations, which I honestly believe there should be. But by looking at usages of that function you'll be able to see somewhat what options are available. https://github.com/dlang/druntime/search?q=rt_configOption I'm not sure if there are other functions related to it either, there probably are, so this probably doesn't cover it all.
Feb 11 2022