diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-11-22 12:54:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 12:54:47 +0100 |
commit | 43f53f4e3803763f7e5fa8f1d4c8ef7b1ac80b96 (patch) | |
tree | 9fd3974cada0567212e997114ca7deb08b3865eb | |
parent | 70d530029a8bdb1ca9840f2aaa32de04f5d69521 (diff) | |
parent | 69b2d3f7914e5823e4e0848c1bcc3d15a1cfa7a1 (diff) | |
download | redot-engine-43f53f4e3803763f7e5fa8f1d4c8ef7b1ac80b96.tar.gz |
Merge pull request #55203 from Calinou/scons-warn-unknown-variables
-rw-r--r-- | SConstruct | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index f7d589e799..83bd1560ff 100644 --- a/SConstruct +++ b/SConstruct @@ -300,6 +300,13 @@ opts.Update(env_base) env_base["platform"] = selected_platform # Must always be re-set after calling opts.Update(). Help(opts.GenerateHelpText(env_base)) +# Detect and print a warning listing unknown SCons variables to ease troubleshooting. +unknown = opts.UnknownVariables() +if unknown: + print("WARNING: Unknown SCons variables were passed and will be ignored:") + for item in unknown.items(): + print(" " + item[0] + "=" + item[1]) + # add default include paths env_base.Prepend(CPPPATH=["#"]) |