Thread overview
Documentation for --DRT- switches
Feb 11, 2022
forkit
Feb 11, 2022
Mike Parker
Feb 11, 2022
bauss
February 11, 2022
Is there any documentation regarding the esoteric --DRT- switches?

One of which is mentioned here:

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

February 11, 2022
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.
February 11, 2022
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.