You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't set __GNUC__ and friends in microsoft mode, set _MSC_VER instead #12162
No, it can't. I haven't tried it myself, but a coworker tried once, and he says it doesn't work because chromium's string16 type assumes that short wchar_ts have the same type as shorts.
Activity
nico commentedon Jan 18, 2012
(chrome workaround: change build_config.h to always set COMPILER_MSVC)
llvmbot commentedon Jan 19, 2012
For my information, can chromium be built with mingw-gcc?
nico commentedon Jan 23, 2012
No, it can't. I haven't tried it myself, but a coworker tried once, and he says it doesn't work because chromium's string16 type assumes that short wchar_ts have the same type as shorts.
AaronBallman commentedon Feb 19, 2012
Actually, it seems that _MSC_VER is defined. It's just that GNUC is also defined at the same time.
#if defined(_MSC_VER)
#error "MSVC defined"
#endif
#if defined(GNUC)
#error "GnuC defined"
#endif
#if defined(I_AM_NOT_DEFINED)
#error "The world is ending"
#endif
This gives two error messages: MSVC defined and GnuC defined
I think this may be a bug
AaronBallman commentedon Mar 13, 2012
This is fixed in r152512
tritao commentedon Nov 26, 2021
mentioned in issue llvm/llvm-bugzilla-archive#13707
Merge pull request llvm#12162 from adrian-prantl/165654518