SCons: Fix creating VS solution with SCons 4.4.0
Fixes #63709.
Co-authored-by: 19PHOBOSS98 <37253663+19PHOBOSS98@users.noreply.github.com>
(cherry picked from commit 89847dc6e3
)
This commit is contained in:
parent
12e10457e1
commit
cc4c959268
1 changed files with 11 additions and 1 deletions
10
methods.py
10
methods.py
|
@ -641,8 +641,18 @@ def find_visual_c_batch_file(env):
|
||||||
find_batch_file,
|
find_batch_file,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Syntax changed in SCons 4.4.0.
|
||||||
|
from SCons import __version__ as scons_raw_version
|
||||||
|
|
||||||
|
scons_ver = env._get_major_minor_revision(scons_raw_version)
|
||||||
|
|
||||||
version = get_default_version(env)
|
version = get_default_version(env)
|
||||||
|
|
||||||
|
if scons_ver >= (4, 4, 0):
|
||||||
|
(host_platform, target_platform, _) = get_host_target(env, version)
|
||||||
|
else:
|
||||||
(host_platform, target_platform, _) = get_host_target(env)
|
(host_platform, target_platform, _) = get_host_target(env)
|
||||||
|
|
||||||
return find_batch_file(env, version, host_platform, target_platform)[0]
|
return find_batch_file(env, version, host_platform, target_platform)[0]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue