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