commit | 97fd3295401021e1afd20575b375e36c47f27b67 | [log] [tgz] |
---|---|---|
author | Damien DeVille <damien@ddeville.me> | Thu Mar 10 01:29:30 2022 -0800 |
committer | GitHub <noreply@github.com> | Thu Mar 10 09:29:30 2022 +0000 |
tree | bbbeea726c553bf8f7fa07e4582ef869d7de534c | |
parent | bf59038cac11798cbaef9f3bf965bad8182b97fa [diff] |
Populate CFLAGS and CXXFLAGS when invoking build script. (#1081) Downstream tools (in particular cc-rs) depend on them being set. The particular use case that I noticed was broken was the macos deployment target (specified via the --macos_minimun_os Bazel option) wasn't being applied on binaries being built via cc-rs in a build.rs script. This was causing all sort of bugs such as symbols not being weakly linked since it was using the SDK version (the default) for the deployment target and bazel-built Rust binaries wouldn't load on older OS versions due to failures to resolve symbols at runtime, even though the deployment target was correctly set in Bazel.
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.