We should deprecate -release

claptrap clap at trap.com
Sat Jul 13 14:27:02 UTC 2024


On Saturday, 13 July 2024 at 05:55:13 UTC, Steven Schveighoffer 
wrote:
>>
> I think it's fair to say no "journalists" are reviewing D in 
> print. For sure, people who try to run benchmarks will at least 
> look for the proper optimization flags, and I bet nobody is 
> looking to remove bounds checks.
>
> Let's just remove it. What it does now is fool people into 
> thinking this is for when you want to release your 
> library/application. If nothing else, it should be renamed to 
> -removesafetychecks or something.
>
> Note, I was wrong about the -O and -inline being implied -- you 
> still have to put those in. -release just gets rid of all the 
> safety checks.

Leave the flag in place but have the compiler print the following 
message...

"DMD optimized code is sloooowww, try using LDC instead"




More information about the Digitalmars-d mailing list