diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2022-07-18 23:59:46 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2022-07-18 23:59:46 -0400 |
commit | aaa00a74c8cd2afdd8205f6f0beecd1f94caafee (patch) | |
tree | 0ae8bc07d38c264a5b1b7d7501155e63a48ec665 | |
parent | 4e5c5a984472426b2d8fc9970b96690842e19740 (diff) | |
download | ios-node-v8-aaa00a74c8cd2afdd8205f6f0beecd1f94caafee.tar.gz ios-node-v8-aaa00a74c8cd2afdd8205f6f0beecd1f94caafee.tar.bz2 ios-node-v8-aaa00a74c8cd2afdd8205f6f0beecd1f94caafee.zip |
Build with debug symbols and strip them from release binaries
-rwxr-xr-x | taler-ios-build/arm64 | 6 | ||||
-rwxr-xr-x | taler-ios-build/x64 | 6 | ||||
-rw-r--r-- | tools/gyp/pylib/gyp/xcode_emulation.py | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/taler-ios-build/arm64 b/taler-ios-build/arm64 index 9b7e3063a1..7a6c1ab2ff 100755 --- a/taler-ios-build/arm64 +++ b/taler-ios-build/arm64 @@ -16,3 +16,9 @@ cd $scriptdir cp ../tools/gyp/pylib/gyp/mac_tool.py ../out-arm64/gyp-mac-tool ./build-ios-node arm64 + +# Strip debug symbols from release binaries. +for i in ../out-arm64/Release/*.a; do + [ -f "$i" ] || break + strip -S $i +done diff --git a/taler-ios-build/x64 b/taler-ios-build/x64 index 956ff14d4c..4d5f982983 100755 --- a/taler-ios-build/x64 +++ b/taler-ios-build/x64 @@ -16,3 +16,9 @@ cd $scriptdir cp ../tools/gyp/pylib/gyp/mac_tool.py ../out-x64/gyp-mac-tool ./build-ios-node x64 + +# Strip debug symbols from release binaries. +for i in ../out-x64/Release/*.a; do + [ -f "$i" ] || break + strip -S $i +done diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py index 99b11a6928..010042111f 100644 --- a/tools/gyp/pylib/gyp/xcode_emulation.py +++ b/tools/gyp/pylib/gyp/xcode_emulation.py @@ -611,7 +611,7 @@ class XcodeSettings(object): self._Appendf(cflags, "GCC_OPTIMIZATION_LEVEL", "-O%s", default="s") - if self._Test("GCC_GENERATE_DEBUGGING_SYMBOLS", "YES", default="NO"): + if self._Test("GCC_GENERATE_DEBUGGING_SYMBOLS", "YES", default="YES"): dbg_format = self._Settings().get("DEBUG_INFORMATION_FORMAT", "dwarf") if dbg_format == "dwarf": cflags.append("-gdwarf-2") |