diff --git a/build/wd_cc_library.bzl b/build/wd_cc_library.bzl index a78b6a571e3..8f96380f81b 100644 --- a/build/wd_cc_library.bzl +++ b/build/wd_cc_library.bzl @@ -1,9 +1,10 @@ """wd_cc_library definition""" -def wd_cc_library(strip_include_prefix = "/src", **kwargs): +def wd_cc_library(strip_include_prefix = "/src", tags = ["off-by-default"], **kwargs): """Wrapper for cc_library that sets common attributes """ native.cc_library( strip_include_prefix = strip_include_prefix, + tags = tags, **kwargs ) diff --git a/src/workerd/tools/BUILD.bazel b/src/workerd/tools/BUILD.bazel index 14db4760aba..3033db90053 100644 --- a/src/workerd/tools/BUILD.bazel +++ b/src/workerd/tools/BUILD.bazel @@ -20,6 +20,10 @@ wd_cc_library( "//src/workerd/jsg:rtti", "@capnp-cpp//src/capnp", ], + target_compatible_with = select({ + "@platforms//os:windows": ["@platforms//:incompatible"], + "//conditions:default": [], + }), ) api_encoder_src = "api-encoder.c++" diff --git a/src/workerd/util/BUILD.bazel b/src/workerd/util/BUILD.bazel index 34f9ca3fb95..23e42438245 100644 --- a/src/workerd/util/BUILD.bazel +++ b/src/workerd/util/BUILD.bazel @@ -10,7 +10,7 @@ wd_cc_library( deps = [ "@capnp-cpp//src/kj" ] + select({ - "@platforms//os:windows": ["@workerd-v8//:v8"], + "@platforms//os:windows": [], "//conditions:default": ["@perfetto//:libperfetto_client_experimental"], }), defines = select({