Merge pull request #56308 from Calinou/scons-tweak-target-release-error-message

This commit is contained in:
Rémi Verschelde 2022-01-12 12:24:34 +01:00 committed by GitHub
commit d98d327868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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