[cfe-users] Clang/LLVM detection on Windows

Hans Wennborg via cfe-users cfe-users at lists.llvm.org
Wed Oct 25 00:47:26 PDT 2017


I don't believe Clang defines _MSC_VER when targeting MinGW.

For MinGW, I belive it also defines __MINGW32__ or __MINGW64__
depending on target architecture.

Cheers,
Hans

On Wed, Oct 25, 2017 at 8:00 AM, degski via cfe-users
<cfe-users at lists.llvm.org> wrote:
> Is there a macro defined by Clang that helps to distinguish between
> Clang/LLVM is called under MinGW/Cygwin and Clang/LLVM with/from MSVC?
>
> Have a good day,
>
> degski
>
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>



More information about the cfe-users mailing list