Merge pull request #97618 from Repiteo/scons/decode-fix

SCons: Fix MSVC decode error
This commit is contained in:
Rémi Verschelde 2024-09-29 16:51:14 +02:00 committed by GitHub
commit 72cff2ed59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -807,7 +807,7 @@ def get_compiler_version(env):
if env.msvc and not using_clang(env):
try:
args = [env["VSWHERE"], "-latest", "-products", "*", "-requires", "Microsoft.Component.MSBuild"]
args = [env["VSWHERE"], "-latest", "-products", "*", "-requires", "Microsoft.Component.MSBuild", "-utf8"]
version = subprocess.check_output(args, encoding="utf-8").strip()
for line in version.splitlines():
split = line.split(":", 1)