From 3b103d6954cd4508e1f63c8e2ea57bda18d98bcf Mon Sep 17 00:00:00 2001 From: Robert Escriva Date: Fri, 11 May 2018 07:47:19 -0700 Subject: [PATCH] Enable use of FreeBSD SDK (#1497) 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 --- go/private/sdk.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/private/sdk.bzl b/go/private/sdk.bzl index bb1f8cf617..2f287da034 100644 --- a/go/private/sdk.bzl +++ b/go/private/sdk.bzl @@ -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