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 81e6404 + 4e5c34b commit 32cb975Copy full SHA for 32cb975
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