We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e6404 commit 4e5c34bCopy full SHA for 4e5c34b
build.rs
@@ -602,7 +602,12 @@ mod c {
602
build_aarch64_out_of_line_atomics_libraries(&src_dir, cfg);
603
604
// Some run-time CPU feature detection is necessary, as well.
605
- sources.extend(&[("__aarch64_have_lse_atomics", "cpu_model.c")]);
+ let cpu_model_src = if src_dir.join("cpu_model.c").exists() {
606
+ "cpu_model.c"
607
+ } else {
608
+ "cpu_model/aarch64.c"
609
+ };
610
+ sources.extend(&[("__aarch64_have_lse_atomics", cpu_model_src)]);
611
}
612
613
let mut added_sources = HashSet::new();
0 commit comments