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

Jeffrey Walton via cfe-users cfe-users at lists.llvm.org
Sun Mar 13 19:24:03 PDT 2016


On Sun, Mar 13, 2016 at 3:42 PM, Csaba Raduly <rcsaba at gmail.com> 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



More information about the cfe-users mailing list