diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-21 20:58:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 20:58:33 +0200 |
commit | 8d4f56a4f21b66862266e64a1d7cde8a3c647df4 (patch) | |
tree | 8d8256e689ebc9e8d4744ca8507bbdf625f2c4b5 | |
parent | b9bf01a9b07ce356ecc4aecb525c7fdbd3f9aa8d (diff) | |
parent | 89b5a569fb41e261ce88cc2d2777726f0692ee25 (diff) |
Merge pull request #38972 from Calinou/scons-add-release-option
Print a notice when compiling with `target=debug`
-rw-r--r-- | SConstruct | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index f8e3a68edd..e5646a7d0a 100644 --- a/SConstruct +++ b/SConstruct @@ -551,11 +551,10 @@ 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'.") + print("Error: The editor can only be built with `target=debug` or `target=release_debug`.") Exit(255) suffix += ".opt" env.Append(CPPDEFINES=["NDEBUG"]) - elif env["target"] == "release_debug": if env["tools"]: suffix += ".opt.tools" @@ -563,8 +562,14 @@ if selected_platform in platform_list: suffix += ".opt.debug" else: if env["tools"]: + print( + "Note: Building a debug binary (which will run slowly). Use `target=release_debug` to build an optimized release binary." + ) suffix += ".tools" else: + print( + "Note: Building a debug binary (which will run slowly). Use `target=release` to build an optimized release binary." + ) suffix += ".debug" if env["arch"] != "": |