Selaa lähdekoodia

SCons: Fix build with GDScript LSP disabled

Fixes #83947.

(cherry picked from commit bfd7a5003653f3f61bb0607a792461aa69c71504)
Rémi Verschelde 1 vuosi sitten
vanhempi
commit
634f9523c2
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      modules/gdscript/SCsub

+ 2 - 0
modules/gdscript/SCsub

@@ -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"])