Use kernel user helpers for armv4t

Rename armv5te cfg to kernel_user_helpers and enable it for armv4t
master
Marco A L Barbosa 2017-12-26 13:01:02 -02:00
parent 3a9ba44406
commit f4edcf7b24
2 changed files with 3 additions and 3 deletions

View File

@ -52,8 +52,8 @@ fn main() {
}
// Only emit the ARM Linux atomic emulation on pre-ARMv6 architectures.
if llvm_target[0] == "armv5te" {
println!("cargo:rustc-cfg=armv5te")
if llvm_target[0] == "armv4t" || llvm_target[0] == "armv5te" {
println!("cargo:rustc-cfg=kernel_user_helpers")
}
}

View File

@ -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")]