浏览代码

Improve error when attempting to build with `tools=yes target=release`

Hugo Locurcio 3 年之前
父节点
当前提交
44b68bd3b6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      SConstruct

+ 2 - 1
SConstruct

@@ -583,7 +583,8 @@ if selected_platform in platform_list:
 
     if env["target"] == "release":
         if env["tools"]:
-            print("Error: The editor can only be built with `target=debug` or `target=release_debug`.")
+            print("ERROR: The editor can only be built with `target=debug` or `target=release_debug`.")
+            print("       Use `tools=no target=release` to build a release export template.")
             Exit(255)
         suffix += ".opt"
         env.Append(CPPDEFINES=["NDEBUG"])