rename file, execute os, etc at compile time

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 6 16:11:56 PDT 2017


On Sunday, 6 August 2017 at 19:56:06 UTC, Johnson Jones wrote:
> is it possible to do? I would like to pre-configure some stuff 
> at "pre-compilation"(in ctfe but before the rest of the program 
> actually gets compiled).
>
> I know it's not safe and all that but in my specific case it 
> would help.  I'll probably use pre-build events, which is 
> probably the best, but just curious about it in general... I've 
> been wanting to write a ctfe virus in D for a while now! j/k.

It is deliberately not possible. reproducible builds security ect.
have a look at dubs preBuildCommand(?)


More information about the Digitalmars-d-learn mailing list