Adjusted toolchain.lua to allow DEBUG=1 builds to be modified by STRIP_SYMBOLS=1 (nw)

This commit is contained in:
Scott Stone 2016-09-26 06:24:31 -04:00
parent a735e09f37
commit 533fd78fc2

View File

@ -1040,30 +1040,30 @@ function strip()
return true
end
configuration { "osx-*", "Release" }
configuration { "osx-*" }
postbuildcommands {
"$(SILENT) echo Stripping symbols.",
"$(SILENT) " .. (_OPTIONS['TOOLCHAIN'] and toolchainPrefix) .. "strip \"$(TARGET)\"",
}
configuration { "android-*", "Release" }
configuration { "android-*" }
postbuildcommands {
"$(SILENT) echo Stripping symbols.",
"$(SILENT) " .. toolchainPrefix .. "strip -s \"$(TARGET)\""
}
configuration { "linux-* or rpi", "Release" }
configuration { "linux-* or rpi" }
postbuildcommands {
"$(SILENT) echo Stripping symbols.",
"$(SILENT) strip -s \"$(TARGET)\""
}
configuration { "mingw*", "x64", "Release" }
configuration { "mingw*", "x64" }
postbuildcommands {
"$(SILENT) echo Stripping symbols.",
"$(SILENT) " .. (_OPTIONS['TOOLCHAIN'] or "$(MINGW64)/bin/") .. "strip -s \"$(TARGET)\"",
}
configuration { "mingw*", "x32", "Release" }
configuration { "mingw*", "x32" }
postbuildcommands {
"$(SILENT) echo Stripping symbols.",
"$(SILENT) " .. (_OPTIONS['TOOLCHAIN'] or "$(MINGW32)/bin/") .. "strip -s \"$(TARGET)\"",