Jenkins Visual Studio x64 prompt (for CMake and Ninja) -


i have jenkins slave visual studio 2012 , want build x64. need prompt environment when run tools prompt link in windows start menu. people suggest (in jenkins windows batch prompt):

call "%vs110comntools%vsvars32.bat" x86_amd64 

but not enough. there small differences in path, lib , libpath environment variables: paths in there point x32 paths only, e.g. to

...;c:\program files (x86)\microsoft visual studio 11.0\vc\bin;... 

instead of

...;c:\program files (x86)\microsoft visual studio 11.0\vc\bin\x86_amd64;c:\program files (x86)\microsoft visual studio 11.0\vc\bin;... 

in fact trying build ninja generator cmake build configuration determined prompt environment.

you need call vcvarsall.bat x86_amd64 located in vc-subdirectory (and eventually remove parentheses path):

set path=%path:"=% call "%vs110comntools%..\..\vc\vcvarsall.bat" x86_amd64 

if want run in pipeline script:

bat """set path=%path:\"=%        call "%vs110comntools%..\\..\\vc\\vcvarsall.bat" x86_amd64        ...""" 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -