Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cc_bindings_from_rs/test/golden/golden_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ _generate_bindings = rule(
aspects = [cc_bindings_from_rust_aspect],
cfg = crubit_flavor_transition,
),
# Synthetic dependency to ensure even a coarse `bazel query` analysis finds a transitive
# dependency from Crubit tool sources to golden test bindings.
"_cc_bindings_from_rs_binary": attr.label(
default = "//cc_bindings_from_rs",
executable = True,
allow_single_file = True,
cfg = "exec",
),
},
implementation = _generate_bindings_impl,
)
Expand Down
1 change: 0 additions & 1 deletion common/golden_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ bazel test \
--config=llvm-unstable \
--test_strategy=local \
--test_env=WRITE_GOLDENS=1 \
--cache_test_results=no \
-k \
$TESTS_TO_RUN
8 changes: 8 additions & 0 deletions rs_bindings_from_cc/test/golden/golden_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ _generate_bindings = rule(
aspects = [rust_bindings_from_cc_aspect],
cfg = crubit_flavor_transition,
),
# Synthetic dependency to ensure even a coarse `bazel query` analysis finds a transitive
# dependency from Crubit tool sources to golden test bindings.
"_rs_bindings_from_cc_binary": attr.label(
default = "//rs_bindings_from_cc",
executable = True,
allow_single_file = True,
cfg = "exec",
),
},
implementation = _generate_bindings_impl,
)
Expand Down