Commit 2bdcf9c
committed
Build junit_runner in the exec configuration
junit_runner is a test-support tool, like process_wrapper and the
coverage collector, so build it the way they are -- in the exec
configuration. As a target-configuration dependency it inherited
target-only settings it can't satisfy: a workspace that pairs a custom
#[global_allocator] with cc_common.link (rules_rust's own
test/integration/cc_common_link_with_global_alloc) failed to link the
runner, because it has no global allocator of its own to supply the
allocator symbols.
Building it for the exec platform keeps it off the target configuration,
which is where it belongs anyway -- it's the test's launcher, it runs
wherever the test is executed, and it has no reason to match the tested
crate's build settings.1 parent 29d6abd commit 2bdcf9c
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | | - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1047 | 1052 | | |
1048 | 1053 | | |
1049 | 1054 | | |
| |||
0 commit comments