Thread overview
[Issue 23110] src/dmd/link.d tries to use MSVC linker on Windows when MinGW is used
May 15, 2022
kinke
May 15, 2022
Brecht Sanders
Sep 11, 2022
Brecht Sanders
Dec 17, 2022
Iain Buclaw
May 15, 2022
https://issues.dlang.org/show_bug.cgi?id=23110

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net

--- Comment #1 from kinke <kinke@gmx.net> ---
That's just one detail of lacking MinGW support (of both DMD and LDC). The compiler would also need to predefine version `MinGW` for druntime/Phobos (there's some support in the libraries, for GDC). C++ mangling in the frontend would need to switch from MSVC to Itanium. Debuginfos would need to switch from CodeView to DWARF format. Static libs (.a) are probably different than the MS ones (.lib). Etc. etc.

--
May 15, 2022
https://issues.dlang.org/show_bug.cgi?id=23110

--- Comment #2 from Brecht Sanders <brecht@sanders.org> ---
FYI:
In my environment I am able to build druntime and libphobos
It's getting GDC to build that I'm really having a hard time with.

Mangling, library format, etc are very similar to other platforms that use COFF format.

Is there any work being done on adding MinGW support?

--
September 11, 2022
https://issues.dlang.org/show_bug.cgi?id=23110

--- Comment #3 from Brecht Sanders <brecht@sanders.org> ---
Looks like dmd 2.100.2 still has no support for using gcc/binutils in src/dmd/link.d

Using LINKCMD=ld.exe doesn't work as command line arguments starting with a slash won't work (e.g. "/OUT:").

Is there any hope we can see support for gcc/binutils on Windows in the near future?

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=23110

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--