Skip to content

Commit

Permalink
Add test toolchain labels to cxx_test
Browse files Browse the repository at this point in the history
Summary:
Add labels from the test toolchain onto `ExternalRunnerTestInfo` provider.

The goal is to use this to populate the sanitizer label so that we can selectify it.

Reviewed By: blackm00n

Differential Revision: D65576867

fbshipit-source-id: 23d3ef128e2af729bfab94c9ca3c33c042a2f1aa
  • Loading branch information
Scott Cao authored and facebook-github-bot committed Nov 12, 2024
1 parent 09648e1 commit 3211524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prelude/cxx/cxx.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ load(
"@prelude//tests:re_utils.bzl",
"get_re_executors_from_props",
)
load("@prelude//tests:test_toolchain.bzl", "test_toolchain_labels")
load(
"@prelude//third-party:build.bzl",
"create_third_party_build_info",
Expand Down Expand Up @@ -778,7 +779,7 @@ def cxx_test_impl(ctx: AnalysisContext) -> list[Provider]:
type = "gtest",
command = command,
env = ctx.attrs.env,
labels = ctx.attrs.labels,
labels = ctx.attrs.labels + test_toolchain_labels(ctx.attrs._test_toolchain),
contacts = ctx.attrs.contacts,
default_executor = re_executor,
executor_overrides = executor_overrides,
Expand Down

0 comments on commit 3211524

Please sign in to comment.