From 856fbc68b327f2ab0212389976d9092828ae3626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 17 May 2024 09:00:44 +0200 Subject: [PATCH] SCons: Restore compatibility with SCons < 4.0.0 Fixes #91986. --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 07ec014cf91..c062f95bdba 100644 --- a/SConstruct +++ b/SConstruct @@ -365,7 +365,7 @@ if env["platform"] in platform_opts: opts.Add(opt) # Update the environment to take platform-specific options into account. -opts.Update(env, {**ARGUMENTS, **env}) +opts.Update(env, {**ARGUMENTS, **env.Dictionary()}) # Detect modules. modules_detected = OrderedDict() @@ -425,7 +425,7 @@ for name, path in modules_detected.items(): env.modules_detected = modules_detected # Update the environment again after all the module options are added. -opts.Update(env, {**ARGUMENTS, **env}) +opts.Update(env, {**ARGUMENTS, **env.Dictionary()}) Help(opts.GenerateHelpText(env)) # add default include paths