[Scons-users] SCons 3.0.3 and Visual Studio 2017

Henrik Edin henrik.edin at mongodb.com
Tue Jan 8 16:31:29 EST 2019


Hi,

 

I tried the new 3.0.3 version that just got released in the MongoDB codebase
and noticed that the Visual Studio 2017 detection seem to be broken
(Explicitly setting MSVC_VERSION=14.1 works).

 

I activated the MSCommon debugging and got the following output:

 

msvc_setup_env()

get_default_version()

get_default_version(): msvc_version:None msvs_version:None

trying to find VC 14.1

find_vc_dir(): found VC in registry: C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\VC

found VC 14.1

find_vc_pdir no cl.exe found 14.1

 

It seems like the following commit is the culprit:
https://github.com/SCons/scons/commit/57d09cd12f950ba938ab0164f3b68ed9373533
18

 

cl.exe is not located under \bin for VS 2017. In the installation on my
system the location is: C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\cl.exe

 

I don't think there's a good way to get this path other than to load the
environment variables with the batch file.

 

Henrik

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20190108/820bb52b/attachment.html>


More information about the Scons-users mailing list