Skip to content

Commit

Permalink
Enable use of FreeBSD SDK (bazel-contrib#1497)
Browse files Browse the repository at this point in the history
This allows a simple repo to be used on FreeBSD (amd64).  I manually
tested the change on a toy project and bazel build/test both worked as I
expected them to work based upon what I've come to expect on Linux.

Signed-off-by: Robert Escriva <[email protected]>
  • Loading branch information
rescrv authored and jayconrod committed May 11, 2018
1 parent 6bee898 commit 3b103d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/private/sdk.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def _go_download_sdk_impl(ctx):
host = "darwin_amd64"
elif ctx.os.name.startswith('windows'):
host = "windows_amd64"
elif ctx.os.name == 'freebsd':
host = "freebsd_amd64"
else:
fail("Unsupported operating system: " + ctx.os.name)
sdks = ctx.attr.sdks
Expand Down

0 comments on commit 3b103d6

Please sign in to comment.