Re: [cfe-users] How to detect LLVM Visual Studio Toolset on Windows?

2016-03-13 Thread Csaba Raduly via cfe-users
Hi Jeffrey,

Have you tried checking for __clang__ ?

On Sun, Mar 13, 2016 at 4:17 AM, Jeffrey Walton via cfe-users
 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?

Csaba

-- 
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
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] How to detect LLVM Visual Studio Toolset on Windows?

2016-03-13 Thread Jeffrey Walton via cfe-users
On Sun, Mar 13, 2016 at 3:42 PM, Csaba Raduly  wrote:
> Hi Jeffrey,
>
> Have you tried checking for __clang__ ?

Thanks Csaba.

The user stated the toolchain does not define some of the familiar
ones, like __clang__. From
http://github.com/weidai11/cryptopp/issues/147:

This toolset defines MSC_VER as 1600
__clang__ macro is not defined

I trying to get a dump of the preprocessor now to confirm it ('clang++
-dM -E - < NULL').

Jeff
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users