Skip to content

Commit

Permalink
add freebsd-amd64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rickystewart committed Jun 10, 2022
1 parent b9b9fb9 commit 59a92cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nodejs/private/os_name.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ OS_ARCH_NAMES = [
("linux", "arm64"),
("linux", "s390x"),
("linux", "ppc64le"),
("freebsd", "amd64"),
]

OS_NAMES = ["_".join(os_arch_name) for os_arch_name in OS_ARCH_NAMES]
Expand Down Expand Up @@ -58,6 +59,9 @@ def os_name(rctx):
return OS_NAMES[5]
elif arch == "ppc64le":
return OS_NAMES[6]
elif os_name.startswith("freebsd"):
if arch == "amd64":
return OS_NAMES[7]

fail("Unsupported operating system {} architecture {}".format(os_name, arch))

Expand Down

0 comments on commit 59a92cc

Please sign in to comment.