Skip to content

Commit

Permalink
Ensure debug paths embedded in DWARF segments of PCM files built for …
Browse files Browse the repository at this point in the history
…Swift are workspace-relative.

PiperOrigin-RevId: 423448286
  • Loading branch information
Googler authored and swiple-rules-gardener committed Jan 22, 2022
1 parent 271bffa commit 34e7ea5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion swift/internal/compiling.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,10 @@ def compile_action_configs(

# Make paths written into debug info workspace-relative.
swift_toolchain_config.action_config(
actions = [swift_action_names.COMPILE],
actions = [
swift_action_names.COMPILE,
swift_action_names.PRECOMPILE_C_MODULE,
],
configurators = [
swift_toolchain_config.add_arg(
"-Xwrapped-swift=-debug-prefix-pwd-is-dot",
Expand Down

1 comment on commit 34e7ea5

@keith
Copy link
Member

@keith keith commented on 34e7ea5 Jan 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.