Skip to content

Commit

Permalink
minor refactoring to match darwin part
Browse files Browse the repository at this point in the history
  • Loading branch information
niyas-sait committed Mar 15, 2022
1 parent 758971c commit 3f56d2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions go/private/sdk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,11 @@ def _detect_host_platform(ctx):
# Default to amd64 when uname doesn't return a known value.

elif ctx.os.name.startswith("windows"):
goos, goarch = "windows", "amd64"
if _get_env_var(ctx, "PROCESSOR_ARCHITECTURE") == "ARM64":
goarch = "arm64"
elif _get_env_var(ctx, "PROCESSOR_ARCHITEW6432") == "ARM64":
goarch = "arm64"
else:
goarch = "amd64"
goos = "windows"
elif ctx.os.name == "freebsd":
goos, goarch = "freebsd", "amd64"
else:
Expand Down

0 comments on commit 3f56d2e

Please sign in to comment.