Fix MSVC for Preview patch version check
This commit is contained in:
parent
e3213aaef5
commit
bfa1a77175
|
@ -828,6 +828,9 @@ def get_compiler_version(env):
|
||||||
sem_ver = split[1].split(".")
|
sem_ver = split[1].split(".")
|
||||||
ret["major"] = int(sem_ver[0])
|
ret["major"] = int(sem_ver[0])
|
||||||
ret["minor"] = int(sem_ver[1])
|
ret["minor"] = int(sem_ver[1])
|
||||||
|
if ("Preview" in sem_ver[2]):
|
||||||
|
ret["patch"] = int(sem_ver[2].split(" ")[0])
|
||||||
|
else:
|
||||||
ret["patch"] = int(sem_ver[2])
|
ret["patch"] = int(sem_ver[2])
|
||||||
# Could potentially add section for determining preview version, but
|
# Could potentially add section for determining preview version, but
|
||||||
# that can wait until metadata is actually used for something.
|
# that can wait until metadata is actually used for something.
|
||||||
|
|
Loading…
Reference in New Issue