Skip to content

Commit f9201c5

Browse files
Fix missing compatibility expressions
1 parent f2bfd26 commit f9201c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/rp2_common/pico_btstack/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ cc_library(
2121
"//bazel/constraint:pico_bt_enable_mesh_enabled": [":pico_btstack_mesh"],
2222
"//conditions:default": [],
2323
}),
24+
target_compatible_with = incompatible_with_config("//bazel/constraint:pico_btstack_config_unset"),
2425
)
2526

2627
# Prefer these aliases to directly referencing @btstack, as it's possible that
@@ -89,7 +90,7 @@ cc_library(
8990
cc_library(
9091
name = "pico_btstack_stdin",
9192
srcs = ["btstack_stdin_pico.c"],
92-
target_compatible_with = compatible_with_pico_w(),
93+
target_compatible_with = compatible_with_pico_w() + incompatible_with_config("//bazel/constraint:pico_btstack_config_unset"),
9394
deps = [
9495
"//bazel/config:PICO_BTSTACK_CONFIG",
9596
"//src/rp2_common:pico_platform",

src/rp2_common/pico_btstack/btstack.BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@rules_python//python:defs.bzl", "py_binary")
2-
load("@pico-sdk//bazel:defs.bzl", "compatible_with_config")
2+
load("@pico-sdk//bazel:defs.bzl", "compatible_with_config", "incompatible_with_config")
33

44
package(default_visibility = ["//visibility:public"])
55

@@ -87,6 +87,7 @@ cc_library(
8787
"3rd-party/yxml/yxml.c",
8888
],
8989
copts = _DISABLE_WARNINGS,
90+
target_compatible_with = incompatible_with_config("@pico-sdk//bazel/constraint:pico_btstack_config_unset"),
9091
deps = [":pico_btstack_base_headers"],
9192
)
9293

0 commit comments

Comments
 (0)