[Scons-users] visual studio 2019 with 2017 addon
Pierre-Luc Boily
pierreluc.boily at gmail.com
Thu Jun 11 17:08:34 EDT 2020
Just to feel useful here, I tried to work around the function to find a
partial solution. There is something that I don't understand.
First, I changed _subproc to call subprocess.run instead.
But then, I do have something strange around vc.py line 747
use_script = env.get('MSVC_USE_SCRIPT', True)
if SCons.Util.is_String(use_script):
print('vc.py:msvc_setup_env() use_script 1 %s\n' % repr(use_script))
d = script_env(use_script)
use_script is a string or not?
Because later, the line 805 in Action.py raised an exception :
pobj = subprocess.run(cmd, **kw)
I feel that run function doesnt like cmd object
Also, see those traces :
vc.py:msvc_setup_env() use_script 1 'C:\\Program Files (x86)\\Microsoft
Visual
Studio\x817\\Professional\\VC\\Auxiliary\\Build\x0bcvarsx86_amd64.bat'
Calling ''C:\\Program Files (x86)\\Microsoft Visual
Studio\x817\\Professional\\VC\\Auxiliary\\Build\x0bcvarsx86_amd64.bat''
It is weird that those string have characters x81 and x0b! This is the
reason why I am wondering if env.get('MSVC_USE_SCRIPT', True) returns a
string. The string should looks like this : C:\Program Files
(x86)\Microsoft Visual
Studio\2017\Professional\VC\Auxiliary\Build\vcvarsx86_amd64.bat
--
Sent from: http://scons.1086193.n5.nabble.com/Users-f16930.html
More information about the Scons-users
mailing list