Don't define __x86_64__ in microsoft mode? #21270
Labels
bugzilla
Issues migrated from bugzilla
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
wontfix
Issue is real, but we can't or won't fix it. Not invalid
Extended Description
v8 uses this technique to check for x32:
#if defined(x86_64) && !defined(LP64)
...
#endif
With cl.exe, this works as cl.exe doesn't define x86_64. With clang-cl, this fails since clang-cl does define x86_64 but doesn't define LP64 (because Windows is LLP64).
clang-cl probably shouldn't define x86_64? It already defines the cl-equivalent _M_X64.
https://codereview.chromium.org/18014003/diff/161001/src/base/build_config.h
The text was updated successfully, but these errors were encountered: