Skip to content

Commit

Permalink
Removed reading artifact identity from labels
Browse files Browse the repository at this point in the history
Summary: No one calls it anymore

Differential Revision: D68817854

fbshipit-source-id: 980458e554298c5d272a91e665530694c057fa5c
  • Loading branch information
Nikita Patskov authored and facebook-github-bot committed Jan 29, 2025
1 parent 31ac1b8 commit 4d0b581
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions prelude/cxx/debug.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.

load("@prelude//debugging:labels.bzl", "DBG_INFO_IDENTITY")

# Model the various "split" debug scenarios (e.g. `-gsplit-dwarf`).
SplitDebugMode = enum(
# Debug info, if present, is inline in the object file, and will be linked
Expand All @@ -23,9 +21,3 @@ SplitDebugMode = enum(
# info (e.g. `dSYM`, `dwp`).
"split",
)

def get_debug_info_identity(ctx: AnalysisContext) -> Label | str:
for label in ctx.attrs.labels:
if label.startswith(DBG_INFO_IDENTITY):
return label
return ctx.label

0 comments on commit 4d0b581

Please sign in to comment.