Fix build when the jsonrpc module is disabled.

This commit is contained in:
Relintai 2023-12-24 00:02:22 +01:00
parent db08e3c8b9
commit d4d4a737fb

View File

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