mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improve error when attempting to build with tools=yes target=release
This commit is contained in:
parent
be665ddff9
commit
44b68bd3b6
1 changed files with 2 additions and 1 deletions
|
|
@ -583,7 +583,8 @@ if selected_platform in platform_list:
|
||||||
|
|
||||||
if env["target"] == "release":
|
if env["target"] == "release":
|
||||||
if env["tools"]:
|
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)
|
Exit(255)
|
||||||
suffix += ".opt"
|
suffix += ".opt"
|
||||||
env.Append(CPPDEFINES=["NDEBUG"])
|
env.Append(CPPDEFINES=["NDEBUG"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue