Build and archive r8 mapping

Bug: b/274735214
Change-Id: I8687adf5d3f10096cd7a986c40192a4253784c72
diff --git a/tools/build_r8lib.py b/tools/build_r8lib.py
index 8dc0cb8..54cf915 100755
--- a/tools/build_r8lib.py
+++ b/tools/build_r8lib.py
@@ -58,6 +58,7 @@
   if output_path is None:
     output_path = target + 'lib.jar'
   output_map_path = output_path + '.map'
+  r8_output_map_path = output_path + '_map.zip'
   toolhelper.run(
       'r8',
       ('--release',
@@ -67,7 +68,8 @@
        temp_lib,
        '--output', output_path,
        '--pg-conf', keep_rules_path,
-       '--pg-map-output', output_map_path),
+       '--pg-map-output', output_map_path,
+       '--partition-map-output', r8_output_map_path),
       **kwargs)
   if exclude_deps:
     return [output_path, temp_deps]