Skip to content

[bazel] Fix rust libudev-sys to build under bazel#9648

Merged
cfrantz merged 1 commit intolowRISC:masterfrom
cfrantz:libudev-sys
Dec 13, 2021
Merged

[bazel] Fix rust libudev-sys to build under bazel#9648
cfrantz merged 1 commit intolowRISC:masterfrom
cfrantz:libudev-sys

Conversation

@cfrantz
Copy link
Contributor

@cfrantz cfrantz commented Dec 10, 2021

The libudev-sys crate invokes the compiler directly rather than via the
cargo (and bazel) supplied RUSTC environment variable. This causes the
library to fail when building under bazel. This patch fixes the
libudev-sys crate to invoke the compiler via the RUSTC variable.

This is the same patch as the PR
sent to libudev-sys.

Signed-off-by: Chris Frantz cfrantz@google.com

The libudev-sys crate invokes the compiler directly rather than via the
cargo (and bazel) supplied `RUSTC` environment variable.  This causes the
library to fail when building under bazel.  This patch fixes the
libudev-sys crate to invoke the compiler via the `RUSTC` variable.

This is the same patch as the [PR](dcuddeback/libudev-sys#11)
sent to libudev-sys.

Signed-off-by: Chris Frantz <cfrantz@google.com>
@cfrantz cfrantz requested review from drewmacrae and mcy December 10, 2021 23:57
Copy link
Contributor

@drewmacrae drewmacrae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM, We'll revert this when it gets accepted upstream and we update libudev-sys

@drewmacrae
Copy link
Contributor

I've cherry-picked and am using this to build and test the smoketests.

@cfrantz cfrantz merged commit 96439a5 into lowRISC:master Dec 13, 2021
@cfrantz cfrantz deleted the libudev-sys branch November 17, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments