[cfe-users] How to detect LLVM Visual Studio Toolset on Windows?
Csaba Raduly via cfe-users
cfe-users at lists.llvm.org
Sun Mar 13 12:42:00 PDT 2016
Have you tried checking for __clang__ ?
On Sun, Mar 13, 2016 at 4:17 AM, Jeffrey Walton via cfe-users
<cfe-users at lists.llvm.org> wrote:
> We took a bug report for LLVM Visual Studio Toolset on Windows. It
> appears LLVM defines _MSC_VER but it cannot consume the same programs
> that Microsoft's compilers can. We now have to figure out a way to
> detect Clang in this configuration and work around its shortcomings.
> The "Getting Started with the LLVM System using Microsoft Visual
> Studio" points us to the FAQ at http://llvm.org/docs/FAQ.html. The FAQ
> does not discuss how to detect the configuration or the preprocessor
> macros that are in effect.
> How do we detect LLVM Visual Studio Toolset on Windows?
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
More information about the cfe-users