--- bazel/platforms/local_config_platform.bzl.orig 2026-10-14 17:59:44 UTC +++ bazel/platforms/local_config_platform.bzl @@ -15,8 +15,10 @@ def _setup_local_config_platform(ctx): os = "windows" elif "mac" in ctx.os.name: os = "macos" - else: + elif "linux" in ctx.os.name: os = "linux" + elif "freebsd" in ctx.os.name: + os = "freebsd" raw_arch = ctx.os.arch toolchain_arch = ARCH_NORMALIZE_MAP[raw_arch] @@ -29,7 +31,9 @@ def _setup_local_config_platform(ctx): # So Starlark doesn't throw an indentation error when this gets injected. constraints_str = ",\n ".join(['"%s"' % c for c in constraints]) - distro = get_host_distro_major_version(ctx) + distro = None + if os == "linux": + distro = get_host_distro_major_version(ctx) arch = toolchain_arch if arch == "x86_64": arch = "amd64"