From 89da3d71034d49ce5d3077e2972d0871948d3b48 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 29 Dec 2021 01:46:36 +0100 Subject: [PATCH] Improve error when attempting to build with `tools=yes target=release` (cherry picked from commit 44b68bd3b607c9c2d421ef7a5eea0565704fdf36) --- SConstruct | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 11e7649ea1a..bb4b2a72eea 100644 --- a/SConstruct +++ b/SConstruct @@ -498,8 +498,9 @@ if selected_platform in platform_list: if env["target"] == "release": if env["tools"]: - print("Tools can only be built with targets 'debug' and 'release_debug'.") - sys.exit(255) + 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"])