summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/toolchain.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/toolchain.lua')
-rw-r--r--scripts/toolchain.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua
index aaf8811fed1..40690b00831 100644
--- a/scripts/toolchain.lua
+++ b/scripts/toolchain.lua
@@ -920,6 +920,16 @@ function toolchain(_buildDir, _subDir)
end
function strip()
+ if not _OPTIONS["STRIP_SYMBOLS"]=="1" then
+ return true
+ end
+
+ configuration { "osx-*", "Release" }
+ postbuildcommands {
+ "$(SILENT) echo Stripping symbols.",
+ "$(SILENT) " .. (_OPTIONS['TOOLCHAIN'] and toolchainPrefix) .. "strip \"$(TARGET)\"",
+ }
+
configuration { "android-arm", "Release" }
postbuildcommands {
"$(SILENT) echo Stripping symbols.",