summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-09 16:47:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-09 16:47:29 +0200
commit5514510f7fb6dc3bcb386f40670eecdbfed1cc1b (patch)
tree68745abf40d22faf0d30f2364ba07b8fa4bed0bd
parentb4943e16e1ad9fa07ca6514558d3c0863d8cbc29 (diff)
parentf682406cf26618d926ed33d7fd43e93de0348d85 (diff)
downloadredot-engine-5514510f7fb6dc3bcb386f40670eecdbfed1cc1b.tar.gz
Merge pull request #94117 from mhilbrunner/fix-94090-vsproj-scons-4.8
Fix VS project generation with SCons 4.8.0+
-rw-r--r--methods.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/methods.py b/methods.py
index b6cae39365..b0f7df9ab2 100644
--- a/methods.py
+++ b/methods.py
@@ -648,6 +648,7 @@ def detect_visual_c_compiler_version(tools_env):
def find_visual_c_batch_file(env):
+ # TODO: We should investigate if we can avoid relying on SCons internals here.
from SCons.Tool.MSCommon.vc import find_batch_file, find_vc_pdir, get_default_version, get_host_target
msvc_version = get_default_version(env)
@@ -661,10 +662,11 @@ def find_visual_c_batch_file(env):
if env.scons_version < (4, 6, 0):
return find_batch_file(env, msvc_version, host_platform, target_platform)[0]
- # Scons 4.6.0+ removed passing env, so we need to get the product_dir ourselves first,
+ # SCons 4.6.0+ removed passing env, so we need to get the product_dir ourselves first,
# then pass that as the last param instead of env as the first param as before.
- # We should investigate if we can avoid relying on SCons internals here.
- product_dir = find_vc_pdir(env, msvc_version)
+ # Param names need to be explicit, as they were shuffled around in SCons 4.8.0.
+ product_dir = find_vc_pdir(msvc_version=msvc_version, env=env)
+
return find_batch_file(msvc_version, host_platform, target_platform, product_dir)[0]