aboutsummaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndreas Haas2017-12-21 18:51:57 +0100
committerAndreas Haas2017-12-21 18:52:17 +0100
commit63658fecfc7765a55f89f39ba8c14ddea83fd083 (patch)
tree568fab382fd50a57f78540c9cd38310288dd95f7 /SConstruct
parent1fa9aac3e415f53a095e955c8a37000629d56dde (diff)
downloadgodot-63658fecfc7765a55f89f39ba8c14ddea83fd083.tar.gz
godot-63658fecfc7765a55f89f39ba8c14ddea83fd083.tar.zst
godot-63658fecfc7765a55f89f39ba8c14ddea83fd083.zip
Scons: Use module suffix only for final binary.
Only append the module suffixes to the resulting binary instead of all object files. That means we can keep most of our build artifacts when toggling modules like mono.
Diffstat (limited to '')
-rw-r--r--SConstruct4
1 files changed, 1 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 88cd1494f..dbce94f29 100644
--- a/SConstruct
+++ b/SConstruct
@@ -411,9 +411,7 @@ if selected_platform in platform_list:
methods.update_version(env.module_version_string)
- suffix += env.module_version_string
-
- env["PROGSUFFIX"] = suffix + env["PROGSUFFIX"]
+ env["PROGSUFFIX"] = suffix + env.module_version_string + env["PROGSUFFIX"]
env["OBJSUFFIX"] = suffix + env["OBJSUFFIX"]
env["LIBSUFFIX"] = suffix + env["LIBSUFFIX"]
env["SHLIBSUFFIX"] = suffix + env["SHLIBSUFFIX"]