From d4d4a737fbd081318b350d58098ba7f692cf850f Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 24 Dec 2023 00:02:22 +0100 Subject: [PATCH] Fix build when the jsonrpc module is disabled. --- modules/gdscript/SCsub | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/SCsub b/modules/gdscript/SCsub index 8108df98b..d84c0f3c4 100644 --- a/modules/gdscript/SCsub +++ b/modules/gdscript/SCsub @@ -16,4 +16,6 @@ if env["tools"]: else: # 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"]) \ No newline at end of file + env_gdscript.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"]) + # Also needed in main env to unexpose --lsp-port option. + env.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"]) \ No newline at end of file