Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust: run libc build script #4336

Merged
merged 1 commit into from
Nov 17, 2020
Merged

Conversation

wchargin
Copy link
Contributor

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,
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!)

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

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
@wchargin wchargin added dependencies Pull requests that update a dependency file core:rustboard //tensorboard/data/server/... labels Nov 17, 2020
@google-cla google-cla bot added the cla: yes label Nov 17, 2020
@wchargin wchargin merged commit 2824075 into master Nov 17, 2020
@wchargin wchargin deleted the wchargin-rust-libc-gen-buildrs branch November 17, 2020 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes core:rustboard //tensorboard/data/server/... dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants