diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/Tool/MSCommon/vc2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc2.py b/src/engine/SCons/Tool/MSCommon/vc2.py index 3323daf..2d246b2 100644 --- a/src/engine/SCons/Tool/MSCommon/vc2.py +++ b/src/engine/SCons/Tool/MSCommon/vc2.py @@ -137,7 +137,8 @@ def get_installed_vcs(): if find_vc_pdir(ver): debug('found VC %s' % ver) installed_versions.append(ver) - return installed_versions + # Sort version to get the most recent first + return sorted(installed_versions)[::-1] def script_env(script, args=None): stdout = common.get_output(script, args) |