Skip to content

Commit

Permalink
Add "apple" constraint to all Apple platform definitions (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
thii authored Sep 27, 2023
1 parent 40cef11 commit 8a652dd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions configs/platforms.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,86 +4,103 @@ APPLE_PLATFORMS_CONSTRAINTS = {
"darwin_arm64": [
"@platforms//os:macos",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"darwin_arm64e": [
"@platforms//os:macos",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"darwin_x86_64": [
"@platforms//os:macos",
"@platforms//cpu:x86_64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"ios_arm64": [
"@platforms//os:ios",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"ios_arm64e": [
"@platforms//os:ios",
"@platforms//cpu:arm64e",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"ios_x86_64": [
"@platforms//os:ios",
"@platforms//cpu:x86_64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:simulator",
],
"ios_sim_arm64": [
"@platforms//os:ios",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:simulator",
],
"tvos_arm64": [
"@platforms//os:tvos",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"tvos_x86_64": [
"@platforms//os:tvos",
"@platforms//cpu:x86_64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:simulator",
],
"tvos_sim_arm64": [
"@platforms//os:tvos",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:simulator",
],
"visionos_arm64": [
"@platforms//os:visionos",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"visionos_sim_arm64": [
"@platforms//os:visionos",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:simulator",
],
"visionos_x86_64": [
"@platforms//os:visionos",
"@platforms//cpu:x86_64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:simulator",
],
"watchos_arm64": [
"@platforms//os:watchos",
"@platforms//cpu:arm64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:simulator",
],
"watchos_arm64_32": [
"@platforms//os:watchos",
"@platforms//cpu:arm64_32",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"watchos_armv7k": [
"@platforms//os:watchos",
"@platforms//cpu:armv7k",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:device",
],
"watchos_x86_64": [
"@platforms//os:watchos",
"@platforms//cpu:x86_64",
"@build_bazel_apple_support//constraints:apple",
"@build_bazel_apple_support//constraints:simulator",
],
}
Expand Down

0 comments on commit 8a652dd

Please sign in to comment.