Bug 1880929 - Drop support for VS 2017. r=firefox-build-system-reviewers,sergesanspaille

Differential Revision: https://phabricator.services.mozilla.com/D202188
This commit is contained in:
Mike Hommey 2024-02-22 00:53:52 +00:00
parent 6774898a0c
commit cf08887328
3 changed files with 3 additions and 12 deletions

View File

@ -672,14 +672,6 @@ def vc_compiler_version(vc_compiler_path):
return Version(f"19.{version.minor}")
@depends_if(vc_compiler_version)
def is_vs2019_or_more(vc_compiler_version):
return vc_compiler_version >= Version("19.20")
add_old_configure_assignment("IS_VS2019_OR_MORE", is_vs2019_or_more)
@depends_if(vc_compiler_version)
def msvs_version(vc_compiler_version):
# clang-cl emulates the same version scheme as cl. And MSVS_VERSION needs to
@ -688,8 +680,7 @@ def msvs_version(vc_compiler_version):
return "2022"
if vc_compiler_version >= Version("19.20"):
return "2019"
if vc_compiler_version >= Version("19.10"):
return "2017"
configure_error("Only Visual Studio 2019 or newer are supported")
return ""

View File

@ -111,7 +111,7 @@ case "$target" in
AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
MSVC_C_RUNTIME_DLL=vcruntime140.dll
if test -n "$IS_VS2019_OR_MORE" -a "$TARGET_CPU" != "x86"; then
if test "$TARGET_CPU" != "x86"; then
MSVC_C_RUNTIME_1_DLL=vcruntime140_1.dll
fi
MSVC_CXX_RUNTIME_DLL=msvcp140.dll

View File

@ -100,7 +100,7 @@ case "$target" in
AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
MSVC_C_RUNTIME_DLL=vcruntime140.dll
if test -n "$IS_VS2019_OR_MORE" -a "$TARGET_CPU" != "x86"; then
if test "$TARGET_CPU" != "x86"; then
MSVC_C_RUNTIME_1_DLL=vcruntime140_1.dll
fi
MSVC_CXX_RUNTIME_DLL=msvcp140.dll