rename file, execute os, etc at compile time

lobo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 7 05:39:31 PDT 2017


On Monday, 7 August 2017 at 00:07:26 UTC, Johnson Jones wrote:
> On Sunday, 6 August 2017 at 23:11:56 UTC, Nicholas Wilson wrote:
>> On Sunday, 6 August 2017 at 19:56:06 UTC, Johnson Jones wrote:
>>> [...]
>>
>> It is deliberately not possible. reproducible builds security 
>> ect.
>> have a look at dubs preBuildCommand(?)
>
> So it is intensionally preventing me from doing something I 
> should be able to do if I want without issue because it thinks 
> I will harm myself?
>
> Why not a compiler switch that enables it? It's blocking 
> something that might be an issue but is almost surely not and 
> prevents the vast capabilities that it would otherwise be able 
> to accomplish.
>
> I guess one can always patch the compiler...
>
> But Dmd does give an error about security, it usually says that 
> the there are not source code available for compile time or 
> something like that.

How is this a blocking anything when you can do it already with 
nearly every build tool available. Invoke a script or prebuilt 
binary etc. as a target that does the munging for you at 
pre-compile time.


More information about the Digitalmars-d-learn mailing list