Skip to content

Commit

Permalink
Merge pull request #564 from tmandry/cpu-model-moved
Browse files Browse the repository at this point in the history
Handle move of cpu_model.c
  • Loading branch information
Amanieu authored Jan 28, 2024
2 parents 81e6404 + 4e5c34b commit 32cb975
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,12 @@ mod c {
build_aarch64_out_of_line_atomics_libraries(&src_dir, cfg);

// Some run-time CPU feature detection is necessary, as well.
sources.extend(&[("__aarch64_have_lse_atomics", "cpu_model.c")]);
let cpu_model_src = if src_dir.join("cpu_model.c").exists() {
"cpu_model.c"
} else {
"cpu_model/aarch64.c"
};
sources.extend(&[("__aarch64_have_lse_atomics", cpu_model_src)]);
}

let mut added_sources = HashSet::new();
Expand Down

0 comments on commit 32cb975

Please sign in to comment.