https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495

--- Comment #12 from Iain Buclaw <ibuclaw at gcc dot gnu.org> ---
(In reply to Brecht Sanders from comment #11)
> Apparently MinGW-w64 dosn't like extern char** environ;
> 
> To avoid this issue for now I commented out the following in
> gcc/cp/module.cc:
>   extern char **environ;
>   while (const char *var = environ[vars.length ()])
>     vars.safe_push (var);
> 
> 
> Then I'm one step closer and the result is:
> 
That's what I'd expect if the host compiler was built without any D runtime
libraries enabled.

List of targets where the runtime library is built by default is maintained
under libphobos/configure.tgt

https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libphobos/configure.tgt;h=b32300b52a185ae5563cc764bd2e960de969e437;hb=refs/heads/master

If not one of the targets matched, you'll have to force it by configuring the
host compiler with:

   --enable-libphobos --with-libphobos-druntime-only

Reply via email to