diff --git a/tools/sh/sh_configure.bzl b/tools/sh/sh_configure.bzl index 7ba056c6cb7bb1..cfae3271b0a6a1 100644 --- a/tools/sh/sh_configure.bzl +++ b/tools/sh/sh_configure.bzl @@ -56,6 +56,8 @@ def _sh_config_impl(repository_ctx): os_label = "@bazel_tools//platforms:linux" elif repository_ctx.os.name.startswith("mac"): os_label = "@bazel_tools//platforms:osx" + elif repository_ctx.os.name.startswith("freebsd"): + os_label = "@bazel_tools//platforms:freebsd" else: fail("Unknown OS")