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 357f82c + 8cdd497 commit 7d3282bCopy full SHA for 7d3282b
build.rs
@@ -88,9 +88,13 @@ fn main() -> Result<(), Box<dyn Error>> {
88
}
89
90
91
- match compile_probe(ARM_LLSC_PROBE) {
92
- Some(status) if status.success() => println!("cargo:rustc-cfg=arm_llsc"),
93
- _ => {}
+ // AArch64 instruction set contains `clrex` but not `ldrex` or `strex`; the
+ // probe will succeed when we already know to deny this target from LLSC.
+ if !target.starts_with("aarch64") {
94
+ match compile_probe(ARM_LLSC_PROBE) {
95
+ Some(status) if status.success() => println!("cargo:rustc-cfg=arm_llsc"),
96
+ _ => {}
97
+ }
98
99
100
Ok(())
0 commit comments