SCons: Fix build with GDScript LSP disabled

Fixes #83947.

(cherry picked from commit bfd7a50036)
This commit is contained in:
Rémi Verschelde 2023-10-30 15:28:34 +01:00
parent 43fa189927
commit 634f9523c2
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -17,3 +17,5 @@ if env["tools"]:
# Using a define in the disabled case, to avoid having an extra define
# in regular builds where all modules are enabled.
env_gdscript.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"])
# Also needed in main env to unexpose --lsp-port option.
env.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"])