commit | 7adf7210d0b953d9cf650cacdafa78aebeb7b5f9 | [log] [tgz] |
---|---|---|
author | kalcutter <kal.conley@dectris.com> | Mon Jun 13 12:10:56 2022 +0200 |
committer | GitHub <noreply@github.com> | Mon Jun 13 11:10:56 2022 +0100 |
tree | 50e9a55746384605d672195f418e503d2925d6b4 | |
parent | 57607239ecf60408a8d854e018853b55ffde5499 [diff] |
cargo: Fix handling of relative sysroots (#1371) Currently, `cc_toolchain.sysroot` is appended as an argument to "CC" and "CXX". This argument, however, will typically be overridden by any --sysroot flag already present in "CFLAGS" and "CXXFLAGS". When sysroot is relative, this fails because cargo_build_script_runner is not executed from the execroot. Do not append `--sysroot` to "CC" and "CXX". Instead, modify any --sysroot arguments with relative paths to be absolute.
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.