Skip to content

Commit

Permalink
Fix distributed_thinlto_partial_split_dwarf
Browse files Browse the repository at this point in the history
Summary: We need to emit debug information in the same file as the object file when using `distributed_lto_partial_split_debug` mode.

Reviewed By: keshavdv

Differential Revision: D67955816

fbshipit-source-id: ff92b92810b639139cf09285ab1da9fb3eae426d
  • Loading branch information
Christy Lee-Eusman authored and facebook-github-bot committed Jan 9, 2025
1 parent 54b8a73 commit b6c8893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cxx/dist_lto/dist_lto.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def cxx_gnu_dist_link(
# materialize.
if cxx_toolchain.split_debug_mode == SplitDebugMode("none"):
opt_cmd.add("--split-dwarf=none")
elif cxx_toolchain.split_debug_mode == SplitDebugMode("single"):
elif cxx_toolchain.split_debug_mode == SplitDebugMode("single") or getattr(ctx.attrs, "distributed_thinlto_partial_split_dwarf", False):
opt_cmd.add("--split-dwarf=single")
elif cxx_toolchain.split_debug_mode == SplitDebugMode("split"):
opt_cmd.add("--split-dwarf=split")
Expand Down

0 comments on commit b6c8893

Please sign in to comment.