Skip to content

Commit

Permalink
Add an "apple" constraint to be associated with all Apple platform de…
Browse files Browse the repository at this point in the history
…finitions.

PiperOrigin-RevId: 568245848
  • Loading branch information
nglevin authored and swiple-rules-gardener committed Sep 25, 2023
1 parent cefeb61 commit 35a049a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions constraints/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ constraint_value(
name = "catalyst",
constraint_setting = ":target_environment",
)

# Constraint indicating if the platform belongs to an "Apple" platform (iOS, watchOS, tvOS, etc.)
constraint_setting(
name = "target_vendor",
visibility = ["//visibility:private"],
)

constraint_value(
name = "apple",
constraint_setting = ":target_vendor",
)

1 comment on commit 35a049a

@thii
Copy link
Member

@thii thii commented on 35a049a Sep 26, 2023

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.