Skip to content

Commit

Permalink
Create separate java_tools for darwin_x86_64 and darwin_arm64
Browse files Browse the repository at this point in the history
This is step 2 of bazelbuild#17780

Closes bazelbuild#17782.

PiperOrigin-RevId: 517115859
Change-Id: I300dadf405f233514486b294970adadf2a7a1602
  • Loading branch information
hvadehra authored and copybara-github committed Mar 16, 2023
1 parent 36c167b commit 3b475b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ sh_binary(
"tmp/build",
"--platform",
] + select({
"//src/conditions:darwin": ["darwin"],
"//src/conditions:darwin_x86_64": ["darwin_x86_64"],
"//src/conditions:darwin_arm64": ["darwin_arm64"],
"//src/conditions:windows": ["windows"],
"//src/conditions:linux": ["linux"],
"//conditions:default": ["unknown"],
Expand Down
2 changes: 1 addition & 1 deletion src/create_java_tools_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ trap "rm -fr $tmp_dir" EXIT

gcs_bucket="gs://bazel-mirror/bazel_java_tools"

for platform in "linux" "windows" "darwin"; do
for platform in "linux" "windows" "darwin_x86_64" "darwin_arm64"; do
rc_url="release_candidates/java/v${java_tools_version}/java_tools_${platform}-v${java_tools_version}-rc${rc}.zip"

if [[ $release == "true" ]]; then
Expand Down

0 comments on commit 3b475b3

Please sign in to comment.