Building the compiler in 2 seconds with `dmd -i`

ryuukk_ ryuukk.dev at gmail.com
Fri May 19 17:41:38 UTC 2023


On Friday, 19 May 2023 at 14:28:38 UTC, Adam D Ruppe wrote:
> On Friday, 19 May 2023 at 09:51:39 UTC, Dennis wrote:
>> Eventually I hope to make just `dmd -i dmd/mars.d` work, I'll 
>> see how close I can get to that.
>
>
> dmd -i is heaven. I, without a doubt, place it as the most 
> significant addition to the D ecosystem of the last six years 
> (probably more if I extended the audit)
>
> I've deleted so many convoluted builds in favor of it and 
> always seen wins.

I still remember the first time you told me to "just use -i", i 
first didn't understand

I gave it an other try when months later i was annoyed with 
"platform dependent modules", and you again told me to "just use 
-i", and yeah it's as simple as just using `-i`

The thing that confused me was `[=pattern]`, you don't need any 
pattern, just `-i`

https://dlang.org/dmd-linux.html#switch-i[


But yeah, i now "just use -i" and it greatly simplified all my 
build scripts and modules, what's not imported is simply just not 
compiled

It should be the default behavior imo




More information about the Digitalmars-d mailing list