[Scons-users] visual studio 2019 with 2017 addon

Mats Wichmann mats at wichmann.us
Sat Jun 13 11:00:44 EDT 2020


On 6/13/20 8:53 AM, Pierre-Luc Boily wrote:
> Oh my, shame on me,
> 
> THe problem was I was passing an incorrect string : 
> 
> MSVC_USE_SCRIPT='C:\Program Files (x86)\Microsoft Visual
> Studio\2017\Professional\VC\Auxiliary\Build\vcvarsx86_amd64.bat')
> 
> Should be like that
> 
> MSVC_USE_SCRIPT='C:\\ProgramFiles (x86)\\Microsoft Visual
> Studio\\2017\\Professional\\VC\\Auxiliary\\Build\\vcvarsx86_amd64.bat')
> 
> Everything works as expected now... thanks for this workaround... and sorry
> for this stupid mistake..

Cool!

using rawstrings whenever there are Windows paths involved is a sound
practice...  those irritating backslashes always cause trouble:

MSVC_USE_SCRIPT=r'C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\VC\Auxiliary\Build\vcvarsx86_amd64.bat'


More information about the Scons-users mailing list