[cfe-dev] LLVM 3.8.0 clang binary for Windows targets VC++

Edward Diener via cfe-dev cfe-dev at lists.llvm.org
Tue Mar 29 17:43:02 PDT 2016


The LLVM downloads are listed at http://llvm.org/releases/download.html.

The distributed LLVM 3.8.0 clang 32-bit binary for Windows at 
http://llvm.org/releases/3.8.0/LLVM-3.8.0-win32.exe targets VC++. I can 
see this by the fact that _MSC_VER is predefined when I invoke clang++.

The distributed LLVM 3.8.0 clang 64-bit binary for Windows at 
http://llvm.org/releases/3.8.0/LLVM-3.8.0-win64.exe targets VC++. I can 
see this by the fact that _MSC_VER is predefined when I invoke clang++.

Was this intentional ?

This was not the case for previous versions of clang for Windows on the 
LLVM downloads page.

Is there any way I can use these binaries without them being targeted 
for VC++ ( _MSC_VER will not be defined ) ? If not, are there any 
distributed binaries for clang 3.8 on Windows listed anywhere on the web 
which do not target VC++ ?

I really would have thought that since clang-cl.exe automatically 
targets VC++, as I understand it, that llvm/clang would have continued 
to distribute their Windows binaries as they did for LLVM 3.7.1 and 
below rather than force VC++ targeting on the end-user in the binary 
distribution of the clang/clang++ executable. I hope there is something 
I have missed in all this ( there usually is ).





More information about the cfe-dev mailing list