[Scons-users] How do I identify the selected version of MSVC?

Dirk Bächle tshortik at gmx.de
Thu Mar 13 16:19:39 EDT 2014


Hi Andrew,

On 13.03.2014 16:02, Andrew C. Morrow wrote:

>

> I can explicitly ask for a particular version of VC by setting

> MSVC_VERSION. However, if I don't do that and let the tool just select

> the default, then MSVC_VERSION does not appear to be updated to

> reflect the actually selected version.

>

> Is there any way to determine by examining the Environment what

> version of VC has been selected by the tooling subsystem?

>


if no MSVC_VERSION is set, this means that the default version gets
selected. This happens in a separate function, which you can call yourself:

import SCons.Tool.MSCommon as msc

env = Environment()
default_version = msc.vs.get_default_version(env)

Does this help?

Best regards,

Dirk



More information about the Scons-users mailing list