We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 86aa192 + 1e3ed77 commit ec8b848Copy full SHA for ec8b848
build.rs
@@ -34,7 +34,11 @@ fn main() {
34
}
35
36
// These targets have hardware unaligned access support.
37
- if target.contains("x86_64") || target.contains("i686") || target.contains("aarch64") {
+ if target.contains("x86_64")
38
+ || target.contains("i686")
39
+ || target.contains("aarch64")
40
+ || target.contains("bpf")
41
+ {
42
println!("cargo:rustc-cfg=feature=\"mem-unaligned\"");
43
44
0 commit comments