windows - vcvarsall - Using 64bit compiler and then switching back to 32bit for seperate build -
i'm using vcvarsall switch x64 compile tools vs2010, run memory issues build. i'd switch x86 tools regular builds.
currently have batch file looks this:
call "c:\program files (x86)\microsoft visual studio 10.0\vc\vcvarsall.bat" x64 set _isnativeenvironment=true "c:\program files (x86)\microsoft visual studio 10.0\common7\ide\devenv" "c:\development\projectx.sln" /build "debug|x64" call "c:\program files (x86)\microsoft visual studio 10.0\vc\vcvarsall.bat" x86 set _isnativeenvironment=true "c:\program files (x86)\microsoft visual studio 10.0\common7\ide\devenv" "c:\development\projectx.sln" /build "debug|x86"
this works first build, second still launch 64bit compiler/linker - gives errors (why need use 32 it). in testing found work if open new command line after running x86 vcvarsall.bat - how can mimic in batch file?
setlocal call "c:\program files (x86)\microsoft visual studio 10.0\vc\vcvarsall.bat" x64 set _isnativeenvironment=true "c:\program files (x86)\microsoft visual studio 10.0\common7\ide\devenv" "c:\development\projectx.sln" /build "debug|x64" endlocal setlocal call "c:\program files (x86)\microsoft visual studio 10.0\vc\vcvarsall.bat" x86 set _isnativeenvironment=true "c:\program files (x86)\microsoft visual studio 10.0\common7\ide\devenv" "c:\development\projectx.sln" /build "debug|x86" endlocal
Comments
Post a Comment