Merge pull request #56965 from Calinou/scons-print-debug-notice-3.x
Print a notice when compiling with `target=debug`
This commit is contained in:
commit
30fe807fa9
|
@ -503,7 +503,6 @@ if selected_platform in platform_list:
|
||||||
Exit(255)
|
Exit(255)
|
||||||
suffix += ".opt"
|
suffix += ".opt"
|
||||||
env.Append(CPPDEFINES=["NDEBUG"])
|
env.Append(CPPDEFINES=["NDEBUG"])
|
||||||
|
|
||||||
elif env["target"] == "release_debug":
|
elif env["target"] == "release_debug":
|
||||||
if env["tools"]:
|
if env["tools"]:
|
||||||
suffix += ".opt.tools"
|
suffix += ".opt.tools"
|
||||||
|
@ -511,8 +510,14 @@ if selected_platform in platform_list:
|
||||||
suffix += ".opt.debug"
|
suffix += ".opt.debug"
|
||||||
else:
|
else:
|
||||||
if env["tools"]:
|
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"
|
suffix += ".tools"
|
||||||
else:
|
else:
|
||||||
|
print(
|
||||||
|
"Note: Building a debug binary (which will run slowly). Use `target=release` to build an optimized release binary."
|
||||||
|
)
|
||||||
suffix += ".debug"
|
suffix += ".debug"
|
||||||
|
|
||||||
if env["arch"] != "":
|
if env["arch"] != "":
|
||||||
|
|
Loading…
Reference in New Issue