diff options
author | Andrew Morrow <acm@mongodb.com> | 2022-01-05 21:27:35 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-12 22:03:45 +0000 |
commit | ce789c6c8452ef2f544f54288f20c0e81b6a575d (patch) | |
tree | e3f6ce6852fd4bf076f740c6e2bc2b6b947980e4 /SConstruct | |
parent | 42c4a1e81df86cd3b808bb982b62f527c0de71d8 (diff) | |
download | mongo-ce789c6c8452ef2f544f54288f20c0e81b6a575d.tar.gz |
SERVER-62501 Use MSVS 2022 by default and require it
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct index 9fd6e0b6db7..c5113604c86 100644 --- a/SConstruct +++ b/SConstruct @@ -950,8 +950,8 @@ env_vars.Add('MSVC_USE_SCRIPT', help='Sets the script used to setup Visual Studio.') env_vars.Add('MSVC_VERSION', - help='Sets the version of Visual C++ to use (e.g. 14.1 for VS2017, 14.2 for VS2019)', - default="14.2") + help='Sets the version of Visual C++ to use (e.g. 14.2 for VS2019, 14.3 for VS2022)', + default="14.3") env_vars.Add('NINJA_PREFIX', default="build", @@ -2617,14 +2617,14 @@ def doConfigure(myenv): # bare compilers, and we should re-check at the very end that TryCompile and TryLink still # work with the flags we have selected. if myenv.ToolchainIs('msvc'): - compiler_minimum_string = "Microsoft Visual Studio 2019 16.4" + compiler_minimum_string = "Microsoft Visual Studio 2022 17.0" compiler_test_body = textwrap.dedent( """ #if !defined(_MSC_VER) #error #endif - #if _MSC_VER < 1924 + #if _MSC_VER < 1930 #error %s or newer is required to build MongoDB #endif |