From bfd7a5003653f3f61bb0607a792461aa69c71504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 30 Oct 2023 15:28:34 +0100 Subject: [PATCH] SCons: Fix build with GDScript LSP disabled Fixes #83947. --- modules/gdscript/SCsub | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gdscript/SCsub b/modules/gdscript/SCsub index 1dc476818686..61accd4fc9ae 100644 --- a/modules/gdscript/SCsub +++ b/modules/gdscript/SCsub @@ -19,6 +19,8 @@ if env.editor_build: # 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"]) if env["tests"]: