Surprise using DMD as replacement C compiler

Carl Sturtivant sturtivant at gmail.com
Thu Feb 29 21:44:32 UTC 2024


On Thursday, 29 February 2024 at 21:27:13 UTC, Lance Bachmeier 
wrote:
> I think Rikki is suggesting replacing
>
> ```
> const(char)* cc = getenv("CC");
> ```
>
> with
>
> ```
> const(char)* cc = getenv("DMD_CC");
> if (!cc) {
>   const(char)* cc = getenv("CC");
> }
> ```
>
> or something like that. Then you'd set `DMD_CC` to whatever 
> `cc` should be used inside DMD.

Good logic. I just want anything that's done to satisfy 
`assert(cc!="dmd");` after it's done.



More information about the Digitalmars-d mailing list