commit | 90e4505c19e8276311cd5ad7d9d894aa659105dd | [log] [tgz] |
---|---|---|
author | thomas <108470890+thb-sb@users.noreply.github.com> | Tue Jan 09 17:29:18 2024 +0100 |
committer | GitHub <noreply@github.com> | Tue Jan 09 08:29:18 2024 -0800 |
tree | 2cd10587f9f8617238df02c7dc1128a79faed159 | |
parent | 012af3ba8fda6acb91a440f8c86b5a45d2c4e64e [diff] |
Fix #2406: use codegen option `link-args` to forward `user_link_flags` in bindgen. (#2407) This commit fixes issue #2406 by using the [`link-args`] codegen option of `rustc`: ``` -C link-args=<user_link_flags> ``` where `<user_link_flags>` are the flags from the [`user_link_flags`] field of [`LinkerInput`]. [`user_link_flags`]: https://bazel.build/rules/lib/builtins/LinkerInput#user_link_flags [`LinkerInput`]: https://bazel.build/rules/lib/builtins/LinkerInput [`link-args`]: https://doc.rust-lang.org/rustc/codegen-options/index.html#link-args
This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust
.
Please refer to the full documentation.