Skip to content

Commit

Permalink
bazel: create symbol mapping file (#2126)
Browse files Browse the repository at this point in the history
Signed-off-by: Rafal Augustyniak <raugustyniak@lyft.com>

Description: Generate symbol mapping file as opposed to symbol table mapping file as it contains more information. Bugsnag's guide explaining the difference between symbol table mapping files and symbol mapping files and how  to generate the latter can be found at https://docs.bugsnag.com/api/ndk-symbol-mapping-upload/#uploading-mapping-files. 

See this Bugsnag Android Github issue bugsnag/bugsnag-android#1609.

Risk Level: Low, affects debugging features only, not production code
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
  • Loading branch information
Augustyniak committed Apr 6, 2022
1 parent 5c724bc commit f955257
Showing 1 changed file with 2 additions and 2 deletions.
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 + " --syms " + lib.path + "| gzip -c >" + objdump_output.path,
command = cc_toolchain.objdump_executable + " --dwarf=info --dwarf=rawline " + lib.path + "| gzip -c >" + objdump_output.path,
tools = [cc_toolchain.all_files],
progress_message = "Generating symbol map " + platform_name,
progress_message = "Generating symbol mapping file " + platform_name,
)

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

0 comments on commit f955257

Please sign in to comment.