Header-Only Library - pragma(root)

Mathias LANG geod24 at gmail.com
Sun Jun 14 09:52:24 UTC 2020


On Sunday, 14 June 2020 at 09:42:45 UTC, Walter Bright wrote:
> On 6/14/2020 2:33 AM, Max Samukha wrote:
>> On Sunday, 14 June 2020 at 08:36:50 UTC, Walter Bright wrote:
>> 
>>> To compile, just:
>>>
>>>   dmd atom
>>>
>> 
>> We have -i already for automatic inclusion of imported modules:
>> 
>> dmd atom -i=.
>> 
>> What does the pragma add to this?
>> 
>> I think Manu was asking for something different.
>
> I don't know what -i does exactly, or why it was added.
>
> https://dlang.org/dmd-windows.html#switch-i

https://github.com/dlang/dmd/pull/7099
It's essentially putting rdmd in the compiler because rdmd was 
considered too slow.


More information about the Digitalmars-d mailing list