Skip to content

Commit

Permalink
[nfc] wd_capnp_library: support dependency on json.capnp
Browse files Browse the repository at this point in the history
It is special and its c++ version is not built but checked into
the vcs. It is implicitly available to c++ targets, but needs be built
for rust.
  • Loading branch information
mikea committed Sep 30, 2024
1 parent 0241b66 commit ffd6980
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/wd_capnp_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ def wd_capnp_library(
"""
base_name = src.removesuffix(".capnp")

# json.capnp is available implicitly for c++ targets
cc_deps = [dep for dep in deps if dep != "@capnp-cpp//src/capnp/compat:json_capnp"]

wd_cc_capnp_library(
name = base_name + "_capnp",
visibility = visibility,
deps = deps,
deps = cc_deps,
srcs = [src],
tags = ["manual"] + tags,
target_compatible_with = target_compatible_with,
Expand Down

0 comments on commit ffd6980

Please sign in to comment.