How do people feel about putting source compiler directives inside rdmd?

aliak something at something.com
Mon Dec 2 20:04:17 UTC 2019


On Monday, 2 December 2019 at 19:32:58 UTC, bachmeier wrote:
> On Monday, 2 December 2019 at 18:48:41 UTC, aliak wrote:
>> Like these in rund? 
>> https://github.com/dragon-lang/rund#source-compiler-directives
>>
>> Is that something that dlang would be open to for rdmd?
>>
>> Cheers
>> - Ali
>
> What is the advantage relative to the added complexity? Can't 
> you use Dub or a Makefile if that's what you want? I'm 
> disagreeing, I just don't know the use case.

Dub is painfully slow for scripting, and if you require a 
makefile whenever someone wants to write a script then python it 
is.

The usecase is being able to have your scripts use the compiler 
flags you want (e.g. dip1000 and optimize, or whatever else).


More information about the Digitalmars-d mailing list