Skip to content

Commit aa8afe8

Browse files
committed
rust: run libc build script
Summary: When setting up the transitive dep on `libc` in #4316, I had originally passed `--cfg=libc_align`, because that fixed the build for me and on CI, and I couldn’t figure out the right cross-platform fix. But @faern [helpfully points out that we just need to run the build script][1], which detects the OS and Rust compiler version to determine the appropriate flags. Bazel `rules_rust` can handle this, if we just ask. (I should have followed my own `DEVELOPMENT.md` suggestions!) [1]: rust-lang/socket2#130 (comment) Test Plan: It still builds—`bazel build @raze__libc__0_2_80//:libc`—and the demo server still works and accepts requests following #4318’s test plan. wchargin-branch: rust-libc-gen-buildrs wchargin-source: 4ddff8d0b822585a9e84c7a24c4577b97b9c5d6a
1 parent 419991b commit aa8afe8

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

tensorboard/data/server/Cargo.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ targets = [
5959
gen_buildrs = true
6060

6161
[package.metadata.raze.crates.libc.'0.2.80']
62-
additional_flags = [
63-
"--cfg=libc_align",
64-
]
62+
gen_buildrs = true
6563

6664
[package.metadata.raze.crates.indexmap.'1.6.0']
6765
additional_flags = [

third_party/rust/remote/BUILD.libc-0.2.80.bazel

+31-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)