pw_toolchain: Add missing map file output

The toolchain does not declare the map file as an output, which means it
is missed by ninja -t {clean,cleandead}. Add it to the toolchain
definition

Change-Id: I54a7f88084b5e5520b1cb92c21534b8c3b6ed5e4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/34580
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Michael Spang <spang@google.com>
diff --git a/pw_toolchain/generate_toolchain.gni b/pw_toolchain/generate_toolchain.gni
index af3f5e2..ccc1c36 100644
--- a/pw_toolchain/generate_toolchain.gni
+++ b/pw_toolchain/generate_toolchain.gni
@@ -300,7 +300,10 @@
       tool("link") {
         command = _link_command
         description = "ld $_link_outfile"
-        outputs = [ _link_outfile ]
+        outputs = [
+          _link_outfile,
+          _link_mapfile,
+        ]
         default_output_dir = "{{target_out_dir}}/bin"
 
         if (defined(invoker.final_binary_extension)) {
@@ -315,7 +318,10 @@
       tool("solink") {
         command = _link_command + " -shared"
         description = "ld -shared $_link_outfile"
-        outputs = [ _link_outfile ]
+        outputs = [
+          _link_outfile,
+          _link_mapfile,
+        ]
         default_output_dir = "{{target_out_dir}}/lib"
         default_output_extension = ".so"
       }