From bfa1a771755107402cb38c7595e9065c418c3a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=9D=E8=BB=92?= <1687701+HKunogi@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:11:39 -0300 Subject: [PATCH] Fix MSVC for Preview patch version check --- methods.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/methods.py b/methods.py index 04541c72ad2..c634c90fc0d 100644 --- a/methods.py +++ b/methods.py @@ -828,7 +828,10 @@ def get_compiler_version(env): sem_ver = split[1].split(".") ret["major"] = int(sem_ver[0]) ret["minor"] = int(sem_ver[1]) - ret["patch"] = int(sem_ver[2]) + if ("Preview" in sem_ver[2]): + ret["patch"] = int(sem_ver[2].split(" ")[0]) + else: + ret["patch"] = int(sem_ver[2]) # Could potentially add section for determining preview version, but # that can wait until metadata is actually used for something. if split[0] == "catalog_buildVersion":