diff options
author | William Deegan <bill@baddogconsulting.com> | 2021-11-05 23:28:33 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2021-11-05 23:28:33 (GMT) |
commit | 7b5f9059db077d655de43363f3566a7ebf54e74b (patch) | |
tree | 9ba3ecf2b118ab1d05b89cd10e709ef64508c9d0 | |
parent | 1a04e66fdbe9dd5b088c337fa04f66f403dde2ad (diff) | |
download | SCons-7b5f9059db077d655de43363f3566a7ebf54e74b.zip SCons-7b5f9059db077d655de43363f3566a7ebf54e74b.tar.gz SCons-7b5f9059db077d655de43363f3566a7ebf54e74b.tar.bz2 |
Remove -prerelease for MSVC 2022
-rwxr-xr-x | CHANGES.txt | 2 | ||||
-rwxr-xr-x | RELEASE.txt | 1 | ||||
-rw-r--r-- | SCons/Tool/MSCommon/vc.py | 18 |
3 files changed, 6 insertions, 15 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 197efa4..0c77d4d 100755 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -11,7 +11,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER From Joseph Brill: - Fix MSVS tests (vs-N.N-exec.py) for MSVS 6.0, 7.0, and 7.1 (import missing module). - - Add support for Visual Studio 2022 (release and prerelease). + - Add support for Visual Studio 2022. From William Deegan: - Fix reproducible builds. Restore logic respecting SOURCE_DATE_EPOCH when set. diff --git a/RELEASE.txt b/RELEASE.txt index 86f5bff..130b86b 100755 --- a/RELEASE.txt +++ b/RELEASE.txt @@ -10,7 +10,6 @@ NEW FUNCTIONALITY ----------------- - Add support for Visual Studio 2022. -- Add support for pre-release versions of Visual Studio 2022 via an environment variable. - Added ninja API 'NINJA_FORCE_SCONS_BUILD' to force a node to callback to scons. DEPRECATED FUNCTIONALITY diff --git a/SCons/Tool/MSCommon/vc.py b/SCons/Tool/MSCommon/vc.py index 129a9b4..2ab070b 100644 --- a/SCons/Tool/MSCommon/vc.py +++ b/SCons/Tool/MSCommon/vc.py @@ -228,10 +228,6 @@ def get_host_target(env): return (host, target, req_target_platform) -# Enable prerelease version(s) via vswhere query argument. -# When enabled, an installed prerelease version will likely be the default msvc version. -_MSVC_CHECK_PRERELEASE = os.environ.get('MSVC_CHECK_PRERELEASE') in ('1', 'true', 'True') - # If you update this, update SupportedVSList in Tool/MSCommon/vs.py, and the # MSVC_VERSION documentation in Tool/msvc.xml. _VCVER = [ @@ -252,22 +248,18 @@ _VCVER = [ _VCVER_TO_VSWHERE_VER = { '14.3': [ ["-version", "[17.0, 18.0)"], # default: Enterprise, Professional, Community (order unpredictable?) - ["-version", "[17.0, 18.0)", "-products", "Microsoft.VisualStudio.Product.BuildTools"], # BuildTools - ] + [ - # TODO: remove after VS 2022 is released - ["-prerelease", "-version", "[17.0, 18.0)"], # default: Enterprise, Professional, Community (order unpredictable?) - ["-prerelease", "-version", "[17.0, 18.0)", "-products", "Microsoft.VisualStudio.Product.BuildTools"], # BuildTools - ] if _MSVC_CHECK_PRERELEASE else [], + ["-version", "[17.0, 18.0)", "-products", "Microsoft.VisualStudio.Product.BuildTools"], # BuildTools + ], '14.2': [ ["-version", "[16.0, 17.0)"], # default: Enterprise, Professional, Community (order unpredictable?) - ["-version", "[16.0, 17.0)", "-products", "Microsoft.VisualStudio.Product.BuildTools"], # BuildTools + ["-version", "[16.0, 17.0)", "-products", "Microsoft.VisualStudio.Product.BuildTools"], # BuildTools ], '14.1': [ ["-version", "[15.0, 16.0)"], # default: Enterprise, Professional, Community (order unpredictable?) - ["-version", "[15.0, 16.0)", "-products", "Microsoft.VisualStudio.Product.BuildTools"], # BuildTools + ["-version", "[15.0, 16.0)", "-products", "Microsoft.VisualStudio.Product.BuildTools"], # BuildTools ], '14.1Exp': [ - ["-version", "[15.0, 16.0)", "-products", "Microsoft.VisualStudio.Product.WDExpress"], # Express + ["-version", "[15.0, 16.0)", "-products", "Microsoft.VisualStudio.Product.WDExpress"], # Express ], } |