Skip to content

Commit ec8b848

Browse files
authored
Merge pull request #440 from alessandrod/bpf-mem-unaligned
2 parents 86aa192 + 1e3ed77 commit ec8b848

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ fn main() {
3434
}
3535

3636
// These targets have hardware unaligned access support.
37-
if target.contains("x86_64") || target.contains("i686") || target.contains("aarch64") {
37+
if target.contains("x86_64")
38+
|| target.contains("i686")
39+
|| target.contains("aarch64")
40+
|| target.contains("bpf")
41+
{
3842
println!("cargo:rustc-cfg=feature=\"mem-unaligned\"");
3943
}
4044

0 commit comments

Comments
 (0)