We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a076c9a + f4edcf7 commit dcbd1ffCopy full SHA for dcbd1ff
build.rs
@@ -52,8 +52,8 @@ fn main() {
52
}
53
54
// Only emit the ARM Linux atomic emulation on pre-ARMv6 architectures.
55
- if llvm_target[0] == "armv5te" {
56
- println!("cargo:rustc-cfg=armv5te")
+ if llvm_target[0] == "armv4t" || llvm_target[0] == "armv5te" {
+ println!("cargo:rustc-cfg=kernel_user_helpers")
57
58
59
src/lib.rs
@@ -52,7 +52,7 @@ pub mod mem;
#[cfg(target_arch = "arm")]
pub mod arm;
-#[cfg(all(armv5te, target_os = "linux", target_arch = "arm"))]
+#[cfg(all(kernel_user_helpers, target_os = "linux", target_arch = "arm"))]
pub mod arm_linux;
#[cfg(target_arch = "x86")]
0 commit comments