June 27, 2023
12:08 p.m.
On Tue Jun 27 16:42:09 2023 +0000, Jacek Caban wrote:
Yes, as Martin explained, refptrs are currently applied unconditionally for mingw targets. BTW, since autoimports are mingw-only feature, they are not used in MSVC mode, so those refptrs should not be present in `--with-mingw=clang` builds. I was confused because `__attribute__((visibility ("hidden")))` does eliminate the refptrs on Clang. I expected `-fvisibility=hidden` to have the same effect, but it does not. You are also right that `--with-mingw=clang` eliminates the refptrs (I was compiling with `i386_CC=i686-w64-mingw32-clang` instead) so maybe we don't really need any changes to LLVM after all.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3109#note_36974