From 3570d4f0ebde2977fb8301f8f9a1c942cb149b17 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Mon, 2 Nov 2015 21:08:15 -0600 Subject: check STRIP_SYMBOLS in strip function and add strip support for osx (nw) --- scripts/toolchain.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/toolchain.lua') 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.", -- cgit v1.2.3-70-g09d2