On Mon Dec 2 16:59:09 2024 +0000, eric pouech wrote:
actually, clang in generic Unix compilation happily accepts -Wl,--build-id (just warns about the flag being added to CFLAGS, which can remove IMO) so winegcc adaptation for Unix target doesn't seem needed, and I'd rather call all of this a clang bug to not accept --build-id for windows's target while it does for unix
It's not a bug. `-Wl,...` options are not interpreted by the compiler, they are just passed to the linker. In MSVC mode, it's raw `lld-link` (in mingw it's wrapped to provide arguments translation), so it uses MSVC link.exe's syntax.