Open huangqinjin opened 6 months ago
hello.cppm
export module hello; export void greeting() {}
> cl /std:c++20 /TP /interface /c hello.cppm > dumpbin /symbols hello.obj | findstr greeting 009 00000000 SECT3 notype () External | ?greeting@@YAXXZ::<!hello> (void __cdecl greeting(void))
> clang --target=x86_64-windows-msvc -std=c++20 -c hello.cppm > dumpbin /symbols hello.o | findstr greeting 00B 00000000 SECT1 notype () External | ?greeting@@YAXXZ (void __cdecl greeting(void))
> clang --target=x86_64-windows-gnu -std=c++20 -c hello.cppm > dumpbin /symbols hello.o | findstr greeting 00D 00000000 SECT1 notype () External | _ZW5hello8greetingv
The symbol mangling includes the module name for GNU ABI but not for MSVC ABI.
@llvm/issue-subscribers-clang-modules
Author: None (huangqinjin)
This is a known issue but we lack developers on windows : (
hello.cppm
MSVC
Clang MSVC ABI
Clang GNU ABI
The symbol mangling includes the module name for GNU ABI but not for MSVC ABI.