Skip to content

Commit

Permalink
Update rules_apple (#2137)
Browse files Browse the repository at this point in the history
Fixes #2120

Co-authored-by: UebelAndre <[email protected]>
  • Loading branch information
keith and UebelAndre authored Aug 30, 2023
1 parent feb75f1 commit cd508d7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/ios/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ rust_register_toolchains(
extra_target_triples = [
"aarch64-apple-ios-sim",
"x86_64-apple-ios",
"aarch64-apple-darwin",
"x86_64-apple-darwin",
],
)

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "build_bazel_rules_apple",
sha256 = "a6141240657093fa7ccc7ca1ee5a62408dd9996d1bf47bc2369b8b9faefb2698",
url = "https://github.com/bazelbuild/rules_apple/releases/download/2.3.0/rules_apple.2.3.0.tar.gz",
sha256 = "62b24b9c3c1eb5bdb6fe1a3f4bf541d6e61eac8997e87c25a50c821f85bf8ff2",
url = "https://github.com/bazelbuild/rules_apple/releases/download/3.0.0-rc1/rules_apple.3.0.0-rc1.tar.gz",
)

load(
Expand Down
16 changes: 16 additions & 0 deletions examples/ios/platform_mappings
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
# https://github.com/bazelbuild/rules_apple/issues/1658
platforms:
//:macos_x86_64
--cpu=darwin_x86_64

//:macos_arm64
--cpu=darwin_arm64

//:ios_x86_64
--cpu=ios_x86_64

//:ios_sim_arm64
--cpu=ios_sim_arm64

//platforms:ios_arm64
--cpu=ios_arm64

flags:
--cpu=darwin_x86_64
--apple_platform_type=macos
Expand Down
4 changes: 2 additions & 2 deletions rust/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def rules_rust_dependencies():
maybe(
http_archive,
name = "build_bazel_apple_support",
sha256 = "77a121a0f5d4cd88824429464ad2bfb54bdc8a3bccdb4d31a6c846003a3f5e44",
url = "https://github.com/bazelbuild/apple_support/releases/download/1.4.1/apple_support.1.4.1.tar.gz",
sha256 = "45d6bbad5316c9c300878bf7fffc4ffde13d620484c9184708c917e20b8b63ff",
url = "https://github.com/bazelbuild/apple_support/releases/download/1.8.1/apple_support.1.8.1.tar.gz",
)

# process_wrapper needs a low-dependency way to process json.
Expand Down

0 comments on commit cd508d7

Please sign in to comment.