Skip to content

Commit 899d90d

Browse files
committed
minor refactoring to match darwin part
1 parent b01fc6f commit 899d90d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

go/private/sdk.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,11 @@ def _detect_host_platform(ctx):
282282
# Default to amd64 when uname doesn't return a known value.
283283

284284
elif ctx.os.name.startswith("windows"):
285+
goos, goarch = "windows", "amd64"
285286
if _get_env_var(ctx, "PROCESSOR_ARCHITECTURE") == "ARM64":
286287
goarch = "arm64"
287288
elif _get_env_var(ctx, "PROCESSOR_ARCHITEW6432") == "ARM64":
288289
goarch = "arm64"
289-
else:
290-
goarch = "amd64"
291-
goos = "windows"
292290
elif ctx.os.name == "freebsd":
293291
goos, goarch = "freebsd", "amd64"
294292
else:

0 commit comments

Comments
 (0)