Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Switch to rust-vmm-ci #16

Merged
merged 5 commits into from
Jan 7, 2020
Merged

Conversation

andreeaflorescu
Copy link
Member

@andreeaflorescu andreeaflorescu commented Dec 30, 2019

Use Buildkite and rust-vmm-ci for testing.

For a successful build, a few other changes were required:

  • Fix the aarch64 musl build
  • Make the bindings features mutually exclusive. This is needed because the Buildkite pipeline uses cargo test --all-features as a step.
  • Disable clippy because for autogenerated code we get a lot of errors and we would need to add manual changes to the auto-generated code.

@andreeaflorescu andreeaflorescu changed the title Switch to rust-vmm-ci [RFC] Switch to rust-vmm-ci Dec 30, 2019
@andreeaflorescu andreeaflorescu force-pushed the rust_vmm_ci branch 2 times, most recently from e9905ee to 4e5171b Compare December 30, 2019 09:48
@andreeaflorescu andreeaflorescu self-assigned this Dec 30, 2019
@andreeaflorescu andreeaflorescu changed the title [RFC] Switch to rust-vmm-ci Switch to rust-vmm-ci Dec 30, 2019
Use Buildkite and rust-vmm-ci for testing.

Signed-off-by: Andreea Florescu <[email protected]>
Import bindings from x86::bindings so we don't need to have the
same logic to exclude features twice (once in the x86/mod.rs and
once in x86/fam_wrappers.rs).

Signed-off-by: Andreea Florescu <[email protected]>
When the crate is built with --all-features we have a bunch of errors
because we are not excluding the 4.14 and 4.20 bindings. Whenever
all features is specified now, the 4.20 bindings are going to be
used. This change is required for switching to rust-vmm-ci where
the tests are run using --all-features flag.

Signed-off-by: Andreea Florescu <[email protected]>
Autogenerated code throws lots of clippy errors. Disable the
warnings as we don't want to manually edit autogenerated code.

Signed-off-by: Andreea Florescu <[email protected]>
The linker was unable to find __addtf3, __multf3 and __subtf3.

Added target-feature=+crt-static and link-arg=-lgcc as a temporary
workaround. This seems to be the accepted fix in the Rust community:
rust-lang/compiler-builtins#201

A permanent fix is yet to be implemented in the Rust compiler.

Signed-off-by: Andreea Florescu <[email protected]>
@sameo sameo merged commit 2a41366 into rust-vmm:master Jan 7, 2020
@andreeaflorescu andreeaflorescu deleted the rust_vmm_ci branch January 7, 2020 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants