Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ build:tsan-dev --copt -DEVENT__DISABLE_DEBUG_MODE
# https://github.com/google/sanitizers/issues/953
build:tsan-dev --test_env="TSAN_OPTIONS=report_atomic_races=0"

# Exclude debug info from the release binary since it makes it too large to fit
# into a zip file. This shouldn't affect crash reports.
build:release-common --define=no_debug_info=1

# Compile releases optimizing for size (eg -Os, etc).
build:release-common --config=sizeopt

Expand All @@ -88,11 +92,6 @@ build:release-ios --config=ios
build:release-ios --config=release-common
build:release-ios --copt=-fembed-bitcode
build:release-ios --compilation_mode=opt
# Exclude debug info from the release binary since it makes it too large to fit
# into a zip file. This shouldn't affect iOS crash reports. We do not define it for Android
# builds as it leads to a removal of relevant symbols from Android binaries (and
# corresponding objdump files).
build:release-ios --define=no_debug_info=1

# Flags for release builds targeting Android or the JVM
# Release does not use the option --define=logger=android
Expand Down
4 changes: 2 additions & 2 deletions bazel/android_debug_info.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def _impl(ctx):
ctx.actions.run_shell(
inputs = [lib],
outputs = [objdump_output],
command = cc_toolchain.objdump_executable + " --dwarf=info --dwarf=rawline " + lib.path + "| gzip -c >" + objdump_output.path,
command = cc_toolchain.objdump_executable + " --syms " + lib.path + "| gzip -c >" + objdump_output.path,
tools = [cc_toolchain.all_files],
progress_message = "Generating symbol mapping file " + platform_name,
progress_message = "Generating symbol map " + platform_name,
)

strip_output = ctx.actions.declare_file(platform_name + "/" + lib.basename)
Expand Down