瀏覽代碼

Merge pull request #84191 from akien-mga/scons-gdscript-fix-no-lsp-build

SCons: Fix build with GDScript LSP disabled
Rémi Verschelde 1 年之前
父節點
當前提交
8c7f836c19
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/gdscript/SCsub

+ 2 - 0
modules/gdscript/SCsub

@@ -19,6 +19,8 @@ if env.editor_build:
         # 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"])
 
 
 
 
 if env["tests"]:
 if env["tests"]: