Visual Studio 2012 seems to always call the 32-bit version of cl.exe
located at %ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\bin\x86_amd64
) instead of the 64-bit one located at %ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\bin\amd64
.
I tried prepending $(VCInstallDir)bin\amd64
to the beginning of the "Executable Directories" list in the VC++ Directories section of the Microsoft.Cpp.x64.user
property sheet, but that doesn't work at all -- when I rebuild I get this error:
TRACKER : error TRK0002: Failed to execute command: "
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\CL.exe"
@C:\Users\<my_profile>\AppData\Local\Temp\tmpf3d817cafe064ad28e7dd62b2cb591c3.rsp
". The operation identifier is not valid.
How can I make Visual Studio 2012 use the native 64-bit C++ compiler?