>But the way a C++ compiler mangles its symbols is irrelevant to whatever platform it is targeting.

Why? If you set a win32-visualstudio target you need an one mangling.
If you set an win32-mingw target, you need an another mangling.