diff options
author | 2015-11-02 21:08:15 -0600 | |
---|---|---|
committer | 2016-02-15 12:09:48 -0600 | |
commit | 3570d4f0ebde2977fb8301f8f9a1c942cb149b17 (patch) | |
tree | 39d505133f3f57dd7fcf3921e396da786aedc336 /scripts/toolchain.lua | |
parent | 36df7413dce0897215d3e01e54ac5334bb65d965 (diff) |
check STRIP_SYMBOLS in strip function and add strip support for osx (nw)
Diffstat (limited to 'scripts/toolchain.lua')
-rw-r--r-- | scripts/toolchain.lua | 10 |
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.", |