diff --git a/language/go/testdata/cgolib_with_build_tags/BUILD.want b/language/go/testdata/cgolib_with_build_tags/BUILD.want index 5a7c81ebe..4e8ada89e 100644 --- a/language/go/testdata/cgolib_with_build_tags/BUILD.want +++ b/language/go/testdata/cgolib_with_build_tags/BUILD.want @@ -49,9 +49,15 @@ go_library( "@io_bazel_rules_go//go/platform:openbsd": [ "example.com/repo/lib/deep", ], + "@io_bazel_rules_go//go/platform:osx": [ + "example.com/repo/lib/deep", + ], "@io_bazel_rules_go//go/platform:plan9": [ "example.com/repo/lib/deep", ], + "@io_bazel_rules_go//go/platform:qnx": [ + "example.com/repo/lib/deep", + ], "@io_bazel_rules_go//go/platform:solaris": [ "example.com/repo/lib/deep", ], diff --git a/rule/platform.go b/rule/platform.go index fffac4799..bfeeeeae6 100644 --- a/rule/platform.go +++ b/rule/platform.go @@ -87,6 +87,14 @@ var KnownPlatforms = []Platform{ {"openbsd", "amd64"}, {"openbsd", "arm"}, {"openbsd", "arm64"}, + {"osx", "386"}, + {"osx", "amd64"}, + {"osx", "arm"}, + {"osx", "arm64"}, + {"qnx", "386"}, + {"qnx", "amd64"}, + {"qnx", "arm"}, + {"qnx", "arm64"}, {"plan9", "386"}, {"plan9", "amd64"}, {"plan9", "arm"},