Skip to content

Commit

Permalink
Enable feature(asm_experimental_arch) for tests
Browse files Browse the repository at this point in the history
This is needed to use `probe!` on ppc64le and s390x

See rust-lang/rust#93335

Also loosen version requirement on `probe`; on Fedora we have been
building with `probe` 0.5.1 with no issue.

Tested by doing a scratch build on Fedora's Koji build system:

https://koji.fedoraproject.org/koji/taskinfo?taskID=123358009

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
  • Loading branch information
michel-slm committed Sep 13, 2024
1 parent bece44a commit 6a74e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libbpf-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ libbpf-rs = {path = ".", features = ["generate-test-files"]}
log = "0.4.4"
memmem = "0.1.1"
plain = "0.2.3"
probe = "0.3"
probe = ">=0.3, <0.6"
scopeguard = "1.1"
serial_test = { version = "3.0", default-features = false }
tempfile = "3.3"
Expand Down
1 change: 1 addition & 0 deletions libbpf-rs/tests/test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![feature(asm_experimental_arch)]
#![allow(clippy::let_unit_value)]
#![warn(clippy::absolute_paths)]

Expand Down

0 comments on commit 6a74e1f

Please sign in to comment.