[PATCH] D23378: Explicitly specify MSVC mangling of iostream globals
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 08:58:40 PDT 2016
majnemer added a subscriber: majnemer.
majnemer added a comment.
I don't think _WIN32 is the right guard because mingw defines that macro and it uses the Itanium mangling.
I'd use something like `_MSC_VER`.
If you want this to work with MSVC (instead of just clang-cl), you could use `#pragma comment(linker, "/alternatename:foo=bar")` to achieve similar results.
https://reviews.llvm.org/D23378
More information about the llvm-commits
mailing list