bazelbuild / rules_rust

Rust rules for Bazel
https://bazelbuild.github.io/rules_rust/
Apache License 2.0
656 stars 419 forks source link

Consistently thread extra target constraints around #2829

Closed illicitonion closed 3 weeks ago

illicitonion commented 3 weeks ago

This allows for selecting non-default toolchains where the exec triple matches the target triple.

This is tested by enabling the musl static linking tests on the Linux host platform. Before this PR, the test would fail because the -gnu rather than -musl rust toolchain would end up getting selected. Now, everything works.

Fixes #2726