Add dwp_files to rules based toolchain
Copybara Import from https://github.com/bazelbuild/rules_cc/pull/478
BEGIN_PUBLIC
Add dwp_files to rules based toolchain (#478)
This is required for fission to work
Closes #478
END_PUBLIC
COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_cc/pull/478 from keith:ks/add-dwp_files-to-rules-based-toolchain 29eb58fddc924719fc750c0eed649f8bf27fe9b7
PiperOrigin-RevId: 804587132
Change-Id: Ic6469b3d8287ba936ab56dd4724d1b1edffab191
diff --git a/cc/toolchains/toolchain.bzl b/cc/toolchains/toolchain.bzl
index af8d522..fa41163 100644
--- a/cc/toolchains/toolchain.bzl
+++ b/cc/toolchains/toolchain.bzl
@@ -38,9 +38,11 @@
Label("//cc/toolchains/actions:cpp_compile"),
Label("//cc/toolchains/actions:cpp_header_parsing"),
],
- # There are no actions listed for coverage, dwp, and objcopy in action_names.bzl.
+ # There are no actions listed for coverage and objcopy in action_names.bzl.
"coverage_files": [],
- "dwp_files": [],
+ "dwp_files": [
+ Label("//cc/toolchains/actions:dwp"),
+ ],
"linker_files": [
Label("//cc/toolchains/actions:cpp_link_dynamic_library"),
Label("//cc/toolchains/actions:cpp_link_nodeps_dynamic_library"),