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