Merge pull request #440 from alessandrod/bpf-mem-unaligned

This commit is contained in:
Amanieu d'Antras 2021-11-25 00:00:01 +00:00 committed by GitHub
commit cf10da1f04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,11 @@ fn main() {
}
// These targets have hardware unaligned access support.
if target.contains("x86_64") || target.contains("i686") || target.contains("aarch64") {
if target.contains("x86_64")
|| target.contains("i686")
|| target.contains("aarch64")
|| target.contains("bpf")
{
println!("cargo:rustc-cfg=feature=\"mem-unaligned\"");
}