Surprise using DMD as replacement C compiler

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Thu Feb 29 21:34:03 UTC 2024


On 01/03/2024 10:27 AM, 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.

There are two separate issues here, my ticket is to prevent invasive 
changes in a build script. What Carl's ticket is for, is to prevent an 
accidental infinite recursion.

Both are needed :)


More information about the Digitalmars-d mailing list