Currently Visual Studio just starts cl.exe
for C++ source compilation. cl.exe
needs to be in one of folders listed on the %PATH%
environment variable.
Since there're separate versions of cl.exe for 32-bit and 64-bit compilation in order to compile a 32-bit project after compiling a 64-bit project it is necessary to restart Visual Studio.
The typical solution is to have two .cmd files each settings %PATH% appropriately and then starting Visual Studio. Is there a solution that doesn't require restarting Visual Studio?